现在的位置: 首页 > 综合 > 正文

How to detect the explorer in js

2013年06月22日 ⁄ 综合 ⁄ 共 140字 ⁄ 字号 评论关闭

if (!/*@cc_on!@*/0) { //if not IE
      //Firefox2、Firefox3、Safari3.1+、Opera9.6+ support js.onload
} else {
      //IE6、IE7 support js.onreadystatechange
}

抱歉!评论已关闭.