[jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
来源:互联网 发布:牛仔裤推荐 知乎 编辑:程序博客网 时间:2024/06/08 05:20
$.browser在jQuery1.9里被删除了,所以项目的js代码里用到$.browser的地方就会报这个错。
jQuery1.9里对不少API做了废弃或者删除。幸运的是,jQuery社区考虑到了这么做给开发人员带来的麻烦,在1.9同时也推出了一个新插件jQuery Migration,该插件可以检查出在1.9之后被废弃或者删除的API,恢复原有功能,从而保证已有的js代码能在最新的jQuery下正常运行。
下面是具体的解决方法,只需要在jQuery引用后加上一行对jQuery Migration的引用即可。
<script src="http://code.jquery.com/jquery-1.9.1.js"></script><script src="http://code.jquery.com/jquery-migrate-1.1.1.js"></script>
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery]Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [JQUERY] CANNOT READ PROPERTY ‘MSIE’ OF UNDEFINED错误的解决方法
- 浏览器cannot read property 'msie' of undefined的解决方法
- 浏览器cannot read property 'msie' of undefined的解决方法
- Jquery错误:Cannot read property ‘msie’ of undefined
- [Jquery]Cannot read property 'msie' of undefined
- Cannot read property ‘msie’ of undefined
- Cannot read property ‘msie’ of undefined
- Uncaught TypeError: Cannot read property 'msie' of undefined问题解决方案
- Uncaught TypeError: Cannot read property 'msie' of undefined
- AndEngine_example1.2 画矩形
- ARM寄存器
- 英特尔矩阵存储技术
- 自定义windows消息
- c# 变量的初始化
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- 运行程序提示access violation at address的解决方法
- wince下的JSON
- rails 入门(4)--数据库技巧
- Cookie的用处
- 【PHP5权威指南】读书心得一——基础语言部分
- oracle rac 自动打补丁Opatch auto
- 一篇很全面的freemarker教程
- 函数调用