小程序转发与剪切板
摘要:onShareAppMessage(res){ if (res.from 'button') { } return { title: '转发', path: '/pages/echarts/echarts?jsonStr=' + "测试信息", success: function (res) { c
阅读全文
posted @
2020-07-13 16:03
chenlw101
阅读(240)
推荐(0)
小程序scroll-view解决横向失效问题,文字不换行
摘要://item需要display:inline-block {{item.coursetitle}} .coursetitle{ display: inline-block; fon...
阅读全文
posted @
2019-05-24 16:12
chenlw101
阅读(471)
推荐(0)
小程序下拉刷新问题
摘要:需要在对应的json文件或者app.json下面加上 如果看不见加载动画,在app.json下面加上 下拉刷新需要在页面上执行,而不是组件
阅读全文
posted @
2018-12-06 19:24
chenlw101
阅读(763)
推荐(0)
async+await一起使用
摘要:/** get 请求 * @param {接口地址} url * @param {请求参数} params */ get(url,params){ return new Promise((resolve,reject) => { wx.request({ url:url, data:params,
阅读全文
posted @
2018-11-13 18:05
chenlw101
阅读(351)
推荐(0)
小程序打开pdf
摘要:wx.downloadFile({ url:"https://xxxxxx.pdf", success(res){ console.log(res) let data = res.tempFilePath; wx.openDocument({ filePath:data, ...
阅读全文
posted @
2018-11-08 17:28
chenlw101
阅读(2062)
推荐(0)
wepy打开页面首次不显示,但是数据已经有了
摘要:page页面首次打开异步数据无法通过props传递到子组件 解决:在开发者工具关闭上传代码时自动压缩就解决了,在wepy文档里也有强调
阅读全文
posted @
2018-11-03 09:11
chenlw101
阅读(475)
推荐(0)