如下代码加入HTML的<head>...</head>区: <SCRIPT LANGUAGE="JavaScript"> <!--// function ignoreSpaces(string) { var temp = ""; string = '' + string; splitstring = string.split(" "); //双引号之间是个空格; for(i = 0; i < splitstring.length; i++) temp += splitstring[i]; return temp; } //--> </script>
|