去除空格

String.prototype.Trim = function () {
return this.replace(/(^\s*)|(\s*$)/g, "");
}

posted on 2014-12-18 09:38  小溪要加油哦!  阅读(176)  评论(0)    收藏  举报