微信小程序——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這個函數,所以報錯是一定的了.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM