IE中的条件注释文本

执行脚本

/*@cc_on
@if(@_jscript)
console.log('In IE');
@else*/
console.log('other explorer');
/*@end
@*/

  

查看console输出:

 

posted @ 2014-12-12 21:42  戴维彦龙  阅读(126)  评论(0编辑  收藏  举报