Uncaught TypeError: Cannot read property 'msie' of undefined
来源:互联网 发布:网络剧投资 编辑:程序博客网 时间:2024/06/05 04:10
错误:
Uncaught TypeError: Cannot read property ‘msie’ of undefined
原因:
$.browser方法在 jQuery 1.9中被移除了
解决办法:
1.下载官方插件(网上大部分人是这么解决的,然而我的bug用这个没有解决)
<script src="http://code.jquery.com/jquery-1.9.0.js"></script><script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
2.自己写一段 $.browser代码进去(推荐)
写在jQuery引用之后的script里面
jQuery.browser = {};(function () { jQuery.browser.msie = false; jQuery.browser.version = 0; if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { jQuery.browser.msie = true; jQuery.browser.version = RegExp.$1; }})();
阅读全文
0 0
- Uncaught TypeError: Cannot read property 'msie' of undefined问题解决方案
- Uncaught TypeError: Cannot read property 'msie' of undefined
- Uncaught TypeError: Cannot read property 'msie' of undefined jQuery
- Uncaught TypeError: Cannot read property 'msie' of undefined
- Uncaught TypeError: Cannot read property 'msie' of undefined
- Uncaught TypeError: Cannot read property 'msie' of undefined
- Extjs4---Uncaught TypeError: Cannot read property ‘items’ of undefined
- 【StackFlow】Uncaught TypeError: Cannot read property 'pageCount' of undefined
- Ckeditor: Uncaught TypeError: Cannot read property 'keyCode' of undefined 解决方法
- Uncaught TypeError: Cannot read property 'options' of undefined 错误
- Uncaught TypeError: Cannot read property 'length' of undefined
- 错误:Uncaught TypeError: Cannot read property 'WebSocket' of undefined
- Uncaught TypeError: Cannot read property 'value' of undefined
- Uncaught TypeError: Cannot read property 'plugin' of undefined
- react Uncaught TypeError: Cannot read property 'title' of undefined
- Uncaught TypeError: Cannot read property 'width' of undefined
- Uncaught TypeError: Cannot read property 'substring' of undefined
- Uncaught TypeError: Cannot read property 'PRINT_INIT' of undefined user:100
- struts2拦截器
- 第五章作业
- 第76讲 接口
- Javascript 面向对象编程
- js动态添加的按钮,其响应事件的添加
- Uncaught TypeError: Cannot read property 'msie' of undefined
- window下安装mongoDB与设置数据库路径失败解决
- Visual Studio下建立并隐式调用自己的动态链接库dll
- 30、C#里面的列表框:ListBox的使用
- 第77讲 继承与实现比较 final const
- 通过js sdk 来进行第三方登录及授权(微博,微信,qq)
- [LeetCode]--Container With Most Water
- 关于listview中是用多个布局 并使用holderView 缓存机制的问题
- 针对json的查询--alibaba的开源项目jsonq