【微信小程序】-封装一个方便的wx.request(...)
首先创建一个js文件,copy下面的代码进去
const app = getApp()
const request = options => {
if(options) {
if(options.header === undefined || options.header === null) {
options.header = {}
}
let authentication = wx.getStorageSync('authentication')
.
原创
2020-08-27 17:06:26 ·
259 阅读 ·
0 评论