Index: ssts-web/src/main/webapp/homepage/sterilizerUnloadMessage.js =================================================================== diff -u -r29109 -r29220 --- ssts-web/src/main/webapp/homepage/sterilizerUnloadMessage.js (.../sterilizerUnloadMessage.js) (revision 29109) +++ ssts-web/src/main/webapp/homepage/sterilizerUnloadMessage.js (.../sterilizerUnloadMessage.js) (revision 29220) @@ -5,14 +5,12 @@ if (window.XMLHttpRequest) { ajax = new XMLHttpRequest(); } else if (window.ActiveXObject) { - var versions = [ 'Microsoft.XMLHTTP', 'MSXML.XMLHTTP', - 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.7.0', + var versions = [ 'Microsoft.XMLHTTP', 'MSXML.XMLHTTP','Msxml2.XMLHTTP.7.0', 'Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.5.0', 'Msxml2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP' ]; for (var i = 0; i < versions.length; i++) { try { - alert(versions[i]); ajax = new ActiveXObject(versions[i]); if (ajax) { return ajax; @@ -125,10 +123,10 @@ //第四步:每两秒循环一次语音提示 function loopMsg(html){ - handleSpeak(html); setTimeout(function(){ if(time > 0){ - time-- + time = time-2; + handleSpeak(html); loopMsg(html); } }, 2000);