判断ie,并确定其版本号

var UA = navigator.userAgent,
isIE = UA.indexOf('MSIE') > -1,
v = isIE ? /d+/.exec(UA.split(';')[1]) : 'no ie';

原文地址:https://www.cnblogs.com/hechunhua/p/3303167.html