Error on using alert in Javascript (Property 'alert' of object is not a function)

后端 未结 6 603
北恋
北恋 2021-01-11 12:59

I am just trying to use alert and put a string variable inside the alert and get an error:

Uncaught TypeError: Property \'alert\' of object [Object Window] i         


        
6条回答
  •  失恋的感觉
    2021-01-11 13:12

    Somewhere in your code you overrode alert. Check for var alert = ... or some other kind of declaration like that. Also check for window.alert declarations.

提交回复
热议问题