摘要: index.js modifyImg:function(){ var that = this; wx.chooseImage({ count: 1, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceT 阅读全文
posted @ 2018-12-07 17:25 cyany_blue 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 由于小程序不支持在渲染的时候使用函数方法 所以需要借助wsx处理 然后在需要使用的wxml里面就添加 Reference:https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxs/01wxs module.html 阅读全文
posted @ 2018-12-07 17:09 cyany_blue 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Reference:https://developers.weixin.qq.com/miniprogram/dev/api/wx.createSelectorQuery.html require Reference:https://developers.weixin.qq.com/miniprog 阅读全文
posted @ 2018-12-07 17:03 cyany_blue 阅读(140) 评论(0) 推荐(0) 编辑
摘要: ``` // api地址 const api = { book: '/todos/10' }; function requestApi(url,params,method,sourceObj){ if(method == 'POST'){ var contentType = 'application/x-www-form-urlencoded' }else{ va... 阅读全文
posted @ 2018-12-07 16:53 cyany_blue 阅读(154) 评论(0) 推荐(0) 编辑