0x800a01b6 - JavaScript 运行时错误:对象不支持属性或方法“timepicker”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26707982/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'timepicker'
提问by Joker
While running my project in Internet Explorer i caught up with this message " 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'timepicker'" and indicated that the error occurs on one of js files that is attached to the project. the error points to this line on the js file --> $('.timepicker-default').timepicker();there is no other problems with this as the datetime picker works fine. The project runs fine on chrome and Firefox. This happens only with IE explorer (IE 11 , version : 11.0.9600.17351)
在 Internet Explorer 中运行我的项目时,我发现了这条消息“ 0x800a01b6 - JavaScript 运行时错误:对象不支持属性或方法‘timepicker’”,并指出错误发生在附加到项目的 js 文件之一上。错误指向 js 文件中的这一行 --> $('.timepicker-default').timepicker(); 没有其他问题,因为日期时间选择器工作正常。该项目在 chrome 和 Firefox 上运行良好。这只发生在 IE 资源管理器(IE 11,版本:11.0.9600.17351)
采纳答案by Joker
Hopefully managed to solve my problem. Not sure whether my approach is right or wrong. what i did is ... 1. Removed most of the References from my child pages and put it on to the Master/Layout Page. 2. Added jquery-1.9.1.min.js, jquery.jsfiles only on my child pages 3. Added
希望设法解决了我的问题。不确定我的方法是对还是错。我所做的是... 1. 从我的子页面中删除了大部分参考资料并将其放在主/布局页面上。2. 添加jquery-1.9.1.min.js, jquery.js文件仅在我的子页面 3. 添加
<script type="text/javascript">
$('.default-date-picker').datepicker({
format: 'mm-dd-yyyy'
});
</script>
Now everything works fine.
现在一切正常。
回答by Henry L
From IE 11 menu tools.. compatibility View Settings, remove the web sites that causing the errors from the list
从 IE 11 菜单工具.. 兼容性查看设置,从列表中删除导致错误的网站