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