/**
* 获取ie浏览器版本号
* @returns
*/
function getInternetExplorerVersion(){ var version = -1; // Return value assumes failure.
if (navigator.appName == 'Microsoft Internet Explorer'||navigator.appName=="Netscape") { var ua = navigator.userAgent.toLowerCase();
var strRegIE1 = /msie [\d.]+;/gi;
var strRegIE2 = /rv:[\d.]+/;
var ieInfo = ua.match(strRegIE1) ;
if ( null === ieInfo){
ieInfo = ua.match(strRegIE2);
}
ieInfo = ieInfo+"";
var version = ieInfo.replace(/[^0-9.]/ig,"");
}
return version;
}