微信商城小程序(三)

微信商城小程序(三) 今天是學到了數據請求部分,wx.request。 1.0官方版本: onLoad: function (options) { let _this = this; wx.request({ url: ‘http://127.0.0.1:3009/category’, success(res){ console.log(res.data.result); _this.setDat
相關文章
相關標籤/搜索