问题:使用JS判断是否为IE浏览器

方法:

1.IE='\v'=='v'  (失败!)

if('\v'=='v') // true only in IE

 

2.IE=(!+"\v1")  (失败!)

if(!+"\v1") // true only in IE

3.IE=top.execScript?1:0

if(top.execScript?true:false) // true only in IE

 

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-10-30
猜你喜欢
  • 2021-11-13
  • 2021-12-30
  • 2021-11-07
  • 2021-11-29
  • 2021-11-27
  • 2021-11-13
  • 2022-01-09
相关资源
相似解决方案