小白一个 ,请各位大神告知下这个问题出现的原因和解决办法?
VM315:1 thirdScriptError
Cannot read property 'request' of undefined;at api login success callback function
TypeError: Cannot read property 'request' of undefined
at success (http://127.0.0.1:47306/appservice/hc_step/pages/index/index.js:681:102)
at Function.o.(anonymous function) (WAService.js:1:1027087)
at Object.success (WAService.js:1:102572)
at r (WAService.js:1:390253)
at WAService.js:1:390435
at v (WAService.js:1:390439)
at WAService.js:1:391847
at t.
at WAService.js:1:102572
at WAService.js:1:90451
这类方式的报错给的很明显啊。at api login success callback function:去这里寻找;
Cannot read property 'request' of undefined:这类的报错方式,都是找不到‘这里(request)’这个方法谁使用是找不到的。也就是:a.request,a我是找不到的,没定义的等等。你先看看是否是指针问题,在你封装的方法种var that = this , that.`````.requset()看看应该可以解决
request 未定义 找找看在哪里封装的 引用一下
去微擎的论坛问吧
产品是微擎的一个模块 拿来练手 ,第一步就没过去 哎..