js 字符串为空

content.replace(/(^\s)|(\s$)/g, "")

posted @ 2014-08-15 18:32  经验源于积累  阅读(241)  评论(0编辑  收藏  举报