Uncaught TypeError: Cannot read property 'msie' of undefined

来源:互联网 发布:mysql返回上一级 编辑:程序博客网 时间:2024/05/29 18:38

up vote
down vote

Use the following script tag in your jsp/js file:

<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>

You can check out this solution by AJ. It's pretty straightforward, just copy and paste the following lines of code.

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
原创粉丝点击