mpvue封裝數據請求(一)

(一)在utils文件中新建httppost.js文件,用於請求數據封裝 ` const host=""//如果有則輸入 function request(url,method,data,header={}){ wx.showLoading({ title:'正在加載中....' }) return new Promise((resolve,reject)=>{ wx.request
相關文章
相關標籤/搜索