分享者: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