Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript &引用;对象不支持此属性或方法“;IE8中的错误消息_Javascript_Jquery_Internet Explorer - Fatal编程技术网

Javascript &引用;对象不支持此属性或方法“;IE8中的错误消息

Javascript &引用;对象不支持此属性或方法“;IE8中的错误消息,javascript,jquery,internet-explorer,Javascript,Jquery,Internet Explorer,我写这个js脚本: $("[rel='tooltip']").tooltip({ placement: 'right' }); // set tooltip by bootstrap js $('input[data-datepicker]').persiancalendar(); // show a calendar for inputs that have a data-datepicker attribute 在除IE之外的所有浏览器中,这都可以正常工作,但在IE8中,这会导致错

我写这个js脚本:

$("[rel='tooltip']").tooltip({ placement: 'right' });   // set tooltip by bootstrap js

$('input[data-datepicker]').persiancalendar(); // show a calendar for inputs that have a data-datepicker attribute 
在除IE之外的所有浏览器中,这都可以正常工作,但在IE8中,这会导致错误

这是错误消息:


由于某些原因,我无法为仅在非IE浏览器中运行此脚本编写条件注释。我想在所有浏览器中运行此脚本,特别是。

完整的错误消息是什么?@Barmar,请参阅顶部,我更新帖子如何包含引导?错误表明定义
.tooltip()
的库尚未加载。这不是一个jQuery方法,你确定你正在加载定义它的插件吗?我用IE 10测试了这个网页,没有问题,我认为IE 8 doesent支持rel='tooltip',doesent?