1、jquery: navigator.userAgent.indexOf("MSIE") >= 0 || (navigator.userAgent.indexOf("Mozilla") >= 0 && navigator.userAgent.indexOf("Chrome") == -1);
注:IE11的内核标示是Mozilla
2、打印使用console.log("****"+navigator.userAgent);
谷歌浏览器如图所示:
IE浏览器如图所示:
3、打断点使用debugger;