简体   繁体   English

IE错误“意外调用方法或属性。 行:113字符:460代码:0”

[英]IE Error “Unexpected call to method or property access. Line: 113 Char: 460 Code: 0”

I've been having problems with IE 8 on my website using jQuery, where IE doesn't really give any specific error message, but none of the script gets executed. 我在使用jQuery的网站上遇到了IE 8的问题,其中IE并未真正给出任何特定的错误消息,但是没有脚本被执行。

Everything works fine in Firefox/Chrome, but when I load the website in IE, I get the not much saying Unexpected call to method or property access. Line: 113 Char: 460 Code: 0 一切在Firefox / Chrome中都可以正常运行,但是当我在IE中加载网站时,我得到的却不是太多的Unexpected call to method or property access. Line: 113 Char: 460 Code: 0 Unexpected call to method or property access. Line: 113 Char: 460 Code: 0

I've tried to check my code with JSLint, but it didn't find any errors. 我试图用JSLint检查我的代码,但是没有发现任何错误。 Are there any specific things that might trigger this? 是否有任何特定的事情可能触发此?

The application is quite AJAX heavy, you can get to it at http://hledammodelku.cz/ 该应用程序的AJAX相当繁重,您可以在http://hledammodelku.cz/上找到它。

The gallery on the right side doesn't load in IE, because the javascript doesn't get executed. 右侧的图库不会在IE中加载,因为未执行JavaScript。

I may have seen something like this before (IE 6, 7, 8) whereby there was a stray comma at the end of an object literal, such as: 我以前可能已经看过类似这样的内容(IE 6、7、8),其中对象文字的末尾有一个逗号,例如:

{ 
    a: "a",
    b: "b",
    c: 9,
}

Could this be it? 可以吗?

Granted that JSLint should probably pick this up. 可以肯定的是,JSLint应该可以解决这一问题。 I'm just offering a possible fix based on my own somewhat upsetting experiences with a similar issue! 我只是根据自己对类似问题的不愉快经历提供一种可能的解决方法!

I found a link from jQuery forum on my travels that also fixed an issue like this. 我在旅行中从jQuery论坛找到了一个链接,该链接也解决了此类问题。

This should be helpful for you. 这将对您有所帮助。

JavaScript IE appendChild() - Unexpected call to method or property access JavaScript IE appendChild()-意外调用方法或属性

PS. PS。 Read the whole thread and don't add the timeout as the first answer says!! 阅读整个主题,不要像第一个答案所说的那样添加超时! :) :)

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

相关问题 jQuery v1.8.3在ie 8中创建错误,即7“对方法或属性访问的意外调用”。 - jQuery v1.8.3 creating error in ie 8 and ie 7 “Unexpected call to method or property access.” 意外调用方法或属性。 在JQUERY - Unexpected call to method or property access. in JQUERY (仅在IE中)SCRIPT65535:对方法或属性访问的意外调用。 main.js,第152行字符28 - (Only in IE) SCRIPT65535: Unexpected call to method or property access. main.js, line 152 character 28 意外调用方法或属性。 微软客户关系管理 - Unexpected call to method or property access. MS CRM Javascript IE错误:意外调用方法或属性访问 - Javascript IE error: unexpected call to method or property access IE7中的“对方法或属性访问的意外调用”错误 - 'unexpected call to method or property access' error in IE7 为什么此jQuery代码会导致IE8错误:“方法或属性访问意外调用” - Why does this jQuery code cause IE8 error: “UNEXPECTED CALL TO METHOD OR PROPERTY ACCESS” IE中出现奇怪的jQuery错误:对方法或属性访问的意外调用 - Strange jQuery error in IE: Unexpected call to method or property access IE6中的网站中断,显示“意外调用方法或属性访问”错误 - Site breaks in IE6 on “Unexpected call to method or property access” error IE7 / 8中意外调用方法或属性 - Unexpected call to method or property access in IE7/8
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM