微信小程序——thirdScriptError n.s is not a function

前言

粗心造成的~

步骤

错误详情

VM5880:1 thirdScriptError
n.s is not a function; [Component] Event Handler Error @ pages/auth/main#bound handleProxy
TypeError: n.s is not a function
    at Me.getMobile (http://127.0.0.1:58111/appservice/pages/auth/main.js:111:15)
    at Me.n [as getMobile] (http://127.0.0.1:58111/appservice/common/vendor.js:149:56)
    at Me.getPhoneNumber (http://127.0.0.1:58111/appservice/pages/auth/main.js:77:121)
    at Array.n (http://127.0.0.1:58111/appservice/common/vendor.js:149:56)
    at Me.$handleProxyWithVue (http://127.0.0.1:58111/appservice/common/vendor.js:2511:44)
    at be.handleProxy (http://127.0.0.1:58111/appservice/common/vendor.js:2370:24)
    at Object.r.safeCallback (http://127.0.0.1:58111/appservice/__dev__/WAService.js:2:1342048)
    at http://127.0.0.1:58111/appservice/__dev__/WAService.js:2:1519647
    at r (http://127.0.0.1:58111/appservice/__dev__/WAService.js:2:1469344)
    at http://127.0.0.1:58111/appservice/__dev__/WAService.js:2:1469466

解决

  1. 找到对应的文件
  2. 查看对应的方法
  3. 修改方法名的时候,请求httphttps的时候把http改成了s,本就无s这个函数,所以报错是一定的了.

猜你喜欢

转载自www.cnblogs.com/wangyang0210/p/12464969.html