摘要: Javascript去掉字符串前后空格 function String.prototype.trim(){ return this.toString().replace(/^\s+|\s+$/g,""); } ===================================== ==========================... 阅读全文
posted @ 2010-01-19 23:11 dkcndk 阅读(1874) 评论(0) 推荐(0)