js 判断是ie浏览器

if (!+[1,]) { //IE
window.event.returnValue = false;
} else {
return false;
}

原文地址:https://www.cnblogs.com/mabelstyle/p/3858972.html