[jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
来源:互联网 发布:mac切换全角 编辑:程序博客网 时间:2024/06/15 01:02
$.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>
0 0
- [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
- Android AsyncTask
- centos上mysql5.6 源码包安装
- 不使用流程控制语句,打印1~1000
- linux命令详解——sed
- word2vec理解
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- Oracle数据表根据表名生成Select语句和Model及JavaBean对象
- Epub电子书 初见
- "互联网+"系列(1) "互联网+"的简介
- CLGeocoder单列产生的问题
- 亟需的能力——专注
- 2416开发记录四: ioctl与unlocked_ioctl区别
- 计网-ch04-题目与解释
- 灰度膨胀和腐蚀算法