微信小程序富文本空格失效------解决

找来找去的没有一个好用的,其实方法特别简单,

修改wxDiscode.js文件的strcharacterDiscode方法中

str = str.replace(/ /g, ' ');   更改为

str = str.replace(/ /g, '\xa0');   

posted on 2019-08-22 16:55  万能的李大少  阅读(1014)  评论(0编辑  收藏  举报