`

js去空格

 
阅读更多
var content = Dom.get("mail_content").value.replace(/(^\s*)|(\s*$)/g,'');//去前后空格
//replace(/\s/ig,'');去全部空格

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics