微信小程序组件riche-text中的图片自适应设置 res['contents'] = res['contents'].replaceAll('<img ', '<img style="max-100%;height:auto;display:block;margin:10px 0;"');