How to detect IE7 and IE8 using jQuery.support

前端 未结 12 1264
忘掉有多难
忘掉有多难 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:16

    Try $.browser, it will let you know if browser version is less than IE9

     var isM = false;
     $.each($.browser, function (i, val) {
        if ($.browser.msie && parseInt(val) < 9) isM = true;
    });
    

提交回复
热议问题