浏览器cannot read property 'msie' of undefined的解决方法
2018-11-14 20:18
591 查看
分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
想起以前看到的一个笑话:一个悬崖边上立着个”Warnning”的牌子,悬崖下躺满了程序员。
对于Warnning如果要求不高通常可以忽略,对于浏览器报错真的要注意一下了,否则程序运行不起来啊→_→
练习demo的时候无论怎么选择js版本还是简化文档内容都无法达到预期效果,于是调用”F12”大法,好吧,看到这么一个错误:
Uncaught TypeError: Cannot read property 'msie' of undefined
- 1
jQuery.browser() removed
The jQuery.browser() method has been deprecated since jQuery 1.3 and is removed in 1.9. If needed, it is available as part of the jQuery Migrate plugin. We recommend using feature detection with a library such as Modernizr.
意思就是jQuery.browser()在后版本不支持了,需要引入一个js插件来进行兼容处理;好吧,在引入一个js文件就可以了:
下载地址:
下载这个js文件,然后放在jquery文件下面:
<script src="jquery-2.1.4.js"></script> <script src="jquery-migrate-1.3.0.js"></script>
- 1
- 2
(后话,将来的某一天我就躺在了”Warnning”悬崖下 TnT )
给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
阅读更多相关文章推荐
- 浏览器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错误的解决方法
- [JQUERY] CANNOT READ PROPERTY ‘MSIE’ OF UNDEFINED错误的解决方法
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- jquery升级到新版本报错[jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- jquery升级到新版本报错[jQuery] Cannot read property ‘msie’ of undefined错误的解决方法(转)
- [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
- 【jQuery】Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
- [jQuery] 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错误的解决方法