错误:
Uncaught TypeError: Cannot read property ‘msie’ of undefined
原因:
$.browser方法在 jQuery 1.9中被移除了
自己写一段 $.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;
}
})();