微信小程序
BSCIO_599
学无止境
展开
-
微信小程序之多张图片上传
微信小程序之多张图片上传(wx.uploadFile)// 选择图片saveImg() {let that = this;var pics = [];let imgLis = that.data.imgLis;if (imgLis.length < 5) {wx.chooseImage({count: 5,sizeType: [‘original’, ‘compressed’],sourceType: [‘album’, ‘camera’],success(res) {// c原创 2020-11-09 17:12:26 · 902 阅读 · 0 评论 -
微信小程序渲染富文本
微信小程序渲染富文本(html标签)先在github上面下载WxParse,复制在本地的文件夹里面先在wxml引入WxParse:然后在js里面引入并配置:var WxParse = require(’…/…/…/wxParse/wxParse’); WxParse.wxParse('article', 'html', article, that, 5);接下来在wxml要使用的地方直接使用就可以了:如果后端返回的数据比较复杂,如[{}]格式,需要做处理,入下:再渲染:原创 2020-11-10 11:52:26 · 567 阅读 · 0 评论