hasClass()在IE中不起作用
hasClass() does not work in IE?
我得到Microsoft JScript runtime error: Object doesn't support this property or method
当我使用IE8时。
if (this.hasClass('imgchargelocation')) {
CallPopUp($(this).closest('tr')[0].sectionRowIndex, 'chargelocation');
}
我也试过这个,但同样的错误…
if (this.attr('class', 'imgchargelocation')) {
CallPopUp($(this).closest('tr')[0].sectionRowIndex, 'chargelocation');
}
hasClass似乎在chrome中工作得很好
似乎你正在使用jQuery,如果是,那么请修复你的语法像这样
if ($(this).hasClass('imgchargelocation')) {
CallPopUp($(this).closest('tr')[0].sectionRowIndex, 'chargelocation');
}
相关文章:
- window.opener.document在ie中不起作用
- 为什么Telerik cdn在IE中不起作用
- JQuery脚本在IE中不起作用
- 默认光标在IE和Mozilla中不起作用
- Asp自定义验证器在IE-11中不起作用
- knockoutjsforeach在IE 9中不起作用
- 谷歌分析在IE中不起作用
- javascript中的SVG转换在IE 11中不起作用
- 用于播放背景音乐的嵌入式flash播放器在IE浏览器中不起作用
- 在IE中切换javascript不起作用的复选框
- JQuery日期选择器在IE 7上不起作用
- HTML表单在IE中不起作用
- Javascript style.background在IE中不起作用
- 对<asp:IE 10的TextBox;不起作用
- Javascript/AAJAX在Opera中不起作用,在FF/IE/Chrome中完美工作
- SPA异步调用在IE 11中不起作用
- 脚本在IE 9中不起作用
- ng-单击在IE中不起作用的选项选择Angularjs
- html2canvas 代码不起作用 IE 11
- 隐藏选项不起作用IE