控制台出错是什么情况

来源:2-1 首页开发(上)

Jason丶鸿

2018-09-06 15:43

thirdScriptError 

 sdk uncaught third Error 

 module "pages/index/index.js" is not defined 

 Error: module "pages/index/index.js" is not defined

    at require (http://127.0.0.1:47738/appservice/__dev__/WAService.js:19:7163)

    at <anonymous>:7:7

    at HTMLScriptElement.scriptLoaded (http://127.0.0.1:47738/appservice/appservice?t=1536219752753:1185:23)

console.error @ VM508:1

(anonymous) @ WAService.js:4

(anonymous) @ WAService.js:4

a @ appservice?t=1536219752753:1109

window.onerror @ VM508:1

scriptLoaded @ appservice?t=1536219752753:1185

VM560:1 Thu Sep 06 2018 15:42:34 GMT+0800 (中国标准时间)  appservice 生成错误

VM560:2 file: pages/index/index.js

 unknown: Unexpected token, expected , (20:8)

   18 |   //事件处理函数

  19 |  

> 20 |   onLoad: function () {

     |        ^

  21 |   

  22 |   

  23 |   }


写回答 关注

2回答

  • 精慕门5042459
    2019-10-03 19:47:30

    那个提示都是写死的咋加的

  • 慕姐9765818
    2018-09-09 10:48:09

     module "pages/index/index.js" is not defined

    路径出错,前面加个斜杆试试 "/pages/index/index.js"

入门微信小程序开发

带你入门微信小程序开发,了解微信小程序的基本知识。

172029 学习 · 378 问题

查看课程

相似问题