- 博客(2)
- 收藏
- 关注
原创 uniapp 微信公众号 扫一扫
一、下载sdk文件,在main.js 或者 使用页面引入npm install jweixin-module --save二、通过接口获取config配置信息onLoad() { // #ifdef H5 let url=location.href.split("#")[0] this.getconfig(url) // #endif },methods:{ getconfig(url) { let that = this that..
2021-08-21 09:51:20 760
原创 微信小程序解决富文本溢出问题
//接收后台接口返回来的值 this.setData({ rich: res.data.replace(/\<img/gi, '<img class="richImg" ') }) .richImg { width: 100%; height: auto;}但是这种方法返回的图片有默认宽度的时候无效 formatRichText(html){ let newContent= html.replace(/<img[^>]*&.
2021-08-20 14:14:14 407
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人