123456789101112131415161718 |
- var app = getApp();
- export const get=(url,data,callback,failback)=>{
- wx.request({
- url: app.globalData.serverpath+url,
- method: "GET",
- header: {
- "Content-Type": "json"
- },
- data:data,
- success: function (res){
- console.debug(res);
- callback && callback(res);
- },
- fail: function (error){
- failback && failback(error)
- }
- })
- }
|