删除前后空格

it2022-05-09  22

//删除前后空格     function   String.prototype.trim(){     return   this.replace(/(^\s+)|(\s+$)/g,"");     }  

转载于:https://www.cnblogs.com/nanshouyong326/archive/2008/12/03/1346620.html


最新回复(0)