![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
Lin Qinghu
学无止境!
展开
-
微信小程序wx.request 封装使用
wx.request({})小程序文档1.封装下let timer;function request(url, method, params, header, successCallback, failCallback) { header = header || {}; header.authorization = 'Basic d3gtYXV0aC0xMjM6d3gtY...原创 2018-10-25 14:40:06 · 366 阅读 · 3 评论 -
小程序wx.request() 之promise
const md5 = require("./md5.js");let timer;function request(url, method, params, header) { header = header || {}; timer = setTimeout(() => { wx.showLoading({}) }, 500) setTimeout(() ...原创 2018-12-01 17:22:33 · 369 阅读 · 0 评论