小程序中rich-text 样式设置需要通过正则给富文本添加样式

replace(/<img/g, '<img style="width:100%" ');

posted on 2020-07-29 09:33  去你的未来  阅读(1936)  评论(0编辑  收藏  举报