摘要: [代码][代码] 阅读全文
posted @ 2010-03-12 18:02 tohen 阅读(942) 评论(0) 推荐(0) 编辑
摘要: 去掉左右空格String.prototype.trim=function (){return this.replace(/(^\s*)|(\s*$)/g,'');}去掉全部空格:String.prototype.mm = function (){return this.replace(/\s/g, '');} 阅读全文
posted @ 2010-03-12 17:27 tohen 阅读(312) 评论(0) 推荐(0) 编辑