String.prototype.TrimAll = function() {
return this.replace(/(^\s*)|(\s*$)/g, "");
};
JS取出字符串首尾空格正则
最新推荐文章于 2023-04-17 19:54:00 发布
String.prototype.TrimAll = function() {
return this.replace(/(^\s*)|(\s*$)/g, "");
};