How to detect IE7 and IE8 using jQuery.support

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

    Be careful with the following because it also includes IE10:

    if ($.browser.msie && $.browser.version.substr(0,1)<7) {
    //

    better use:

    if ($.browser.msie && parseInt($.browser.version,10)<7) {
    //

提交回复
热议问题