Detect Internet Explorer 6 or below in jQuery

前端 未结 13 2486
野的像风
野的像风 2020-12-12 17:44

I\'m new to jquery and was wondering: is a simple way to detect whether a browser is Internet Explorer 6 or below?

13条回答
  •  猫巷女王i
    2020-12-12 18:25

    Try this out:

     jQuery.each(jQuery.browser, function(i, val) {
      $("
    " + i + " : " + val + "") .appendTo(document.body); });

    if you need more info refer to this:

    http://docs.jquery.com/Utilities/jQuery.browser

提交回复
热议问题