Detect Internet Explorer 6 or below in jQuery

前端 未结 13 2465
野的像风
野的像风 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条回答
  •  情歌与酒
    2020-12-12 18:24

    Very nice way to detect IE is:

    if ('v'=='\v') {
       welcome to IE )) 
    }
    

    Unfortunately it can't recognize its version but it's not always nessecary.

提交回复
热议问题