摘要: function iGetInnerText(testStr) { var resultStr = testStr.replace(/\ +/g, ""); //去掉空格 resultStr = testStr.replace(/[ ]/g, ""); //去掉空格 resultStr = testStr.replace(/[\r\n]/g, ""); //去掉回车换行 return resultStr; }var testStr="sssss vvvvv";var result=iGetInnerText(tes 阅读全文
posted @ 2012-07-05 17:33 一修先生 阅读(32683) 评论(1) 推荐(1) 编辑