摘要:
去重 去空 String.prototype.trim=function(){ return this.replace(/(^\s+)|(\s+$)g,'') } str.trim() function trim(str){ return str.replace(/(^\s+)|(\s+$)/g,' 阅读全文
posted @ 2017-05-14 19:56
little-rabbit
阅读(305)
评论(0)
推荐(0)