diff --git a/example/request.js b/example/request.js index 997d41f..a8adc96 100644 --- a/example/request.js +++ b/example/request.js @@ -49,10 +49,6 @@ weRequest.init({ return res.msg }, // 当出现CGI错误时,统一的回调函数,这里可以做统一的错误上报等处理 - errorCallback: function(obj, res) { - // do some report - }, - // 当出现CGI错误时,统一的回调函数,这里可以做统一的错误上报等处理 errorCallback: function(obj, res) { // do some report }, @@ -85,4 +81,4 @@ weRequest.init({ } }) -module.exports = weRequest; \ No newline at end of file +module.exports = weRequest;