判断ie9 月亮有石头 2018-09-29 685 阅读1分钟 ie9是开始支持html5新特性的ie版本,经常需要对ie版本做判断来区分处理不同的情况。 if(navigator.appName == "Microsoft Internet Explorer"&&parseInt(navigator.appVersion.split(";")[1].replace(/[ ]/g, "").replace("MSIE",""))<9){ alert("您的浏览器版本过低,请下载IE9及以上版本"); }