微信小程序设置http请求的步骤详解 结合后台接口文档
分享者:kingrome2017,来自原文地址 var root = "https://testapi.bidata.com.cn/platform/v3"; var env = "dev"; var _getURL = function(url) { if(env == "mock") { return url + ".json"; } else { return root + url; } }; var _request = function(url,method,data,onSuccess,onError) { data = data || {}; var behavi
用户评论