Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r29551 -r29557 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 29551) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 29557) @@ -216,17 +216,15 @@ } return targetString; } - -function isIE() { - var myNav = navigator.userAgent.toLowerCase(); - return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false; -} - -function isIE2(value){ +/** + * 判断是否IE浏览器 + * @param value 版本号,有值的情况判断是否小于该版本号 + */ +function isIE(value){ var vals = value || ''; if(!!window.ActiveXObject || "ActiveXObject" in window){ if(vals !== ''){ - var DEFAULT_VERSION = 8.0; + var DEFAULT_VERSION = vals; var ua = navigator.userAgent.toLowerCase(); var safariVersion = ua.match(/msie ([\d.]+)/) || ''; if(safariVersion == ''){ @@ -2602,7 +2600,7 @@ var userNames = []; if (selectedUsersArray == undefined) { return; - }else if(isIE2() && selectedUsersArray[0] == undefined){ + }else if(isIE() && selectedUsersArray[0] == undefined){ if(isDom){ userIdsElement.value = ''; userNamesElement.value = '';