String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
转载于:https://www.cnblogs.com/leamiko/archive/2011/05/09/2041356.html
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
转载于:https://www.cnblogs.com/leamiko/archive/2011/05/09/2041356.html