How to detect IE7 and IE8 using jQuery.support

前端 未结 12 1242
忘掉有多难
忘掉有多难 2020-12-08 10:46

How can I detect IE 7 and IE 8 using jQuery.support properties?

Is it possible to detect the browser versions using jQuery.support or just those blah blah blah brows

12条回答
  •  一整个雨季
    2020-12-08 11:15

    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { 
        var ieversion = new Number(RegExp.$1);
        alert(ieversion < 9);
    }
    

提交回复
热议问题