2017年3月9日
摘要: 去掉左右空格 function trim(str){ return str.replace(/(^\s*)|(\s*$)/g, ""); } 去掉所有空格 function trim(str, true){ return str.replace(/\s/g,""); } 阅读全文
posted @ 2017-03-09 14:23 vsmart 阅读(123) 评论(0) 推荐(0) 编辑