在调试一些在IE中不起作用的jQuery时,我发现了以下错误消息:
var item = $("#item_"+ itemArray[itemIndex]).find('a').text().trim();
Object doesn't support this property or method (script.js, line 100, character 2)
Run Code Online (Sandbox Code Playgroud)
在character 2没有道理给我.根据显示的文字character 2将是字母a,var但当然没有任何意义.
(我不应该使用var?)
我知道jQuery在某种程度上有效,或者脚本无法在我的页面上实现这一点.