浏览器适配
window.onload = function () { if (navigator.userAgent.indexOf("MSIE") > 0 || navigator.userAgent.indexOf("Edge") > 0 || navigator.userAgent.indexOf(".NET")) { //dosomething } }