首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

js 除开前后空格

2012-09-02 
js 去除前后空格function String.prototype.Trim() { return this.replace(/(^\s*)|(\s*$)/g, ) }

js 去除前后空格
function String.prototype.Trim() { return this.replace(/(^\s*)|(\s*$)/g, ""); }

热点排行