摘要: If you prefer not to modify the string prototype, then you can use the stand-alone functions below. function trim(stringToTrim) { return stringToTrim.replace(/^\s+|\s+$/g,""); } function ltrim(strin... 阅读全文
posted @ 2007-10-24 10:21 冷火 阅读(830) 评论(1) 推荐(0) 编辑