标签:func 封装 ade content json success type ica cat
function RequestUrl(url, data, method, success, fail, complete) {
    wx.request({
        url: url,
        data: data ? data : {},
        header: {
            ‘content-type‘: ‘application/json‘,
            ‘Accept‘: ‘application/json‘
        },
        method: method ? method : ‘GET‘,
        success: success ? success : function(){},
        fail: fail ? fail : function(){},
        complete: complete ? complete : function(){}
    })
}标签:func 封装 ade content json success type ica cat
原文地址:https://www.cnblogs.com/studyh5/p/9949698.html