11 2018 档案
vue里面axios使用post
摘要:这样使用,后台就可以接受到值了 阅读全文
posted @ 2018-11-21 14:34 chenlw101 阅读(838) 评论(0) 推荐(0)
vue-cli 选项无法选问题
摘要:winpty vue.cmd create admin 这样创建就可以了 阅读全文
posted @ 2018-11-21 11:09 chenlw101 阅读(576) 评论(0) 推荐(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 阅读(354) 评论(0) 推荐(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 阅读(2067) 评论(2) 推荐(0)
wepy打开页面首次不显示,但是数据已经有了
摘要:page页面首次打开异步数据无法通过props传递到子组件 解决:在开发者工具关闭上传代码时自动压缩就解决了,在wepy文档里也有强调 阅读全文
posted @ 2018-11-03 09:11 chenlw101 阅读(479) 评论(0) 推荐(0)