! 去除字符串两端空格的处理如果采用传统的方式,就要可能就要采用下面的方式了//清除左边空格function js_ltrim(deststr){if(deststr==null)return “”;var pos=0;var retStr=new String(deststr);if (retStr.lenght==0) return retStr;while (retStr.substring(pos,pos+1)==” “) pos++;retStr=retStr.substring(pos);return(retStr);}//清除右边空格function js_rtrim(dests