-
var isIE = /*@cc_on!@*/!1;
-
if(!+[1,])alert("这是ie浏览器");
-
!!(window.attachEvent && navigator.userAgent.indexOf('Opera') === -1)
//库prototype的方法,是根据ie支持window.attachEvent添加侦听事件,非ie用window.addEventListener添加侦听事件来判断。
//navigator.userAgent.indexOf('Opera') === -1是因为opara浏览器能伪装成ie.
//如果!!(window.attachEvent )为真,就是ie;反之,如果!window.addEventListener为真,也可以判断为ie. -
!"1"[0]
//好像不兼容IE8 -
!+"\v1"
//ie不支持垂直制表符 -
+[1,]
//为啥? -
!!(!window.addEventListener&& navigator.userAgent.indexOf('Opera') === -1)
//同第三条 -
!!(document.all && navigator.userAgent.indexOf('Opera') === -1)
//IE支持document.all -
var ie = ’\v’==’v’;
//?? -
var ie//@cc_on=1;
//??