js 去除字符串空白符

 

var a="      123456"

varb=a.replace(/(^\s*)/g, "");

posted @ 2017-08-02 16:16  LBO.net  阅读(190)  评论(0)    收藏  举报
//返回顶部