日期:2014-05-16  浏览次数:20356 次

JS 去除左右空格
//去除左右空格
String.prototype.trim = function(){
    return this.replace(/(^\s*)|(\s*$)/g,"");
}