js去除字符串中的所有空格

发布时间:2021-05-21 18:22:11    发布者:文昌文城莱奥网络技术工作室    浏览次数:710

str = "  hello  world !  "
str.replace(/\s/g,"");