ITeye博客

js中的trim

anykey1009 · 2009-12-28 14:31 · Web前端 · Markdown

str.replace(/(^\s*)|(\s*$)/g,   "");

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。