简体   繁体   English

Javascript ASPX 页面中的运行时错误

[英]Javascript Runtime error in ASPX page

I got strange error when i run the.apsx page运行.apsx 页面时出现奇怪的错误

Error is below:错误如下:

"Microsoft JScript runtime error: Unable to get value of the property 'addEventListener': object is null or undefined" “Microsoft JScript 运行时错误:无法获取属性‘addEventListener’的值:object 是 null 或未定义”

I could not understand, why this error occur.我不明白,为什么会发生这个错误。 How can i fix it plz help !我该如何解决它请帮忙!

If you are using IE, than perhaps it's because for IE<9, you need to use attachEvent.如果您使用的是 IE,那么可能是因为 IE<9,您需要使用 attachEvent。 https://developer.mozilla.org/en/DOM/element.addEventListener https://developer.mozilla.org/en/DOM/element.addEventListener

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM