functionconvertNUM(beforeCountTest){//轉換之前的科學計數法表示vartempValue=beforeCountTest.value;vartempValueStr=newString(tempValue);if((tempValueStr.indexOf("E")!=-1)||(tempValueStr.indexOf("e")!=-1)){alert(tempValueStr+"是科學計數法表示!");varregExp=newRegExp("^((\\d+.?\\d+)[Ee]{1}(\\d+))$","ig");varresult=regExp.exec(tempValue);varresultValue="";varpower="";if(result!=null){resultValue=result[2];power=result[3];result=regExp.exec(tempValueStr);}if(resultValue!=""){if(power!=""){varpowVer=Math.pow(10,power);alert("10的"+power+"次方["+powVer+"]");resultValue=resultValue*powVer;}}$("afterCountTest").value=resultValue;}}
functionconvertNUM(beforeCountTest){//轉換之前的科學計數法表示vartempValue=beforeCountTest.value;vartempValueStr=newString(tempValue);if((tempValueStr.indexOf("E")!=-1)||(tempValueStr.indexOf("e")!=-1)){alert(tempValueStr+"是科學計數法表示!");varregExp=newRegExp("^((\\d+.?\\d+)[Ee]{1}(\\d+))$","ig");varresult=regExp.exec(tempValue);varresultValue="";varpower="";if(result!=null){resultValue=result[2];power=result[3];result=regExp.exec(tempValueStr);}if(resultValue!=""){if(power!=""){varpowVer=Math.pow(10,power);alert("10的"+power+"次方["+powVer+"]");resultValue=resultValue*powVer;}}$("afterCountTest").value=resultValue;}}