browser.msie error after update to jQuery 1.9.1

前端 未结 11 1904
别那么骄傲
别那么骄傲 2020-11-27 03:32

I use the following snip of a script:

if ($.browser.msie && $.browser.version < 9) {
   extra = \"?\" + Math.floor(Math.random() * 3000);
}
         


        
11条回答
  •  离开以前
    2020-11-27 03:52

    You can detect the IE browser by this way.

    (navigator.userAgent.toLowerCase().indexOf('msie 6') != -1)

    you can get reference on this URL: jquery.browser.msie Alternative

提交回复
热议问题