js清除html 所有空格占位符   

清除富文本中所有   这些空格字符

html = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
html.replace(/ /g,"").replace(/ /g,"").replace(/ /g,"")

 

posted @ 2020-10-23 11:24  龙卷风吹毁停车场  阅读(1521)  评论(0编辑  收藏  举报