我正在与Meteor合作一款宾果游戏.我现在收到一个错误,因为它在JS文件中(我正在写咖啡),我不知道它来自哪里.
这是完整的错误:
ReferenceError: Console is not defined
at app/Bingo.coffee.js:465:12
at run (/Users/ppedrazzi/Dropbox/Paul's Stuff/MyApps/Meteor/bingo/.meteor/local/build/server/server.js:283:63)
at Array.forEach (native)
at Function._.each._.forEach (/usr/local/meteor/lib/node_modules/underscore/underscore.js:79:11)
at run (/Users/ppedrazzi/Dropbox/Paul's Stuff/MyApps/Meteor/bingo/.meteor/local/build/server/server.js:283:7)
Run Code Online (Sandbox Code Playgroud)
我已将咖啡和html文件放在一个要点:https: //gist.github.com/ppedrazzi/5303493
感谢您的任何见解!!
Aks*_*hat 17
它看起来像你的第334行bingo.coffee.
在javascript中,一切都区分大小写,因此使用小写 c
console.log "Server started and collections cleared."
Run Code Online (Sandbox Code Playgroud)
代替
Console.log "Server started and collections cleared."
Run Code Online (Sandbox Code Playgroud)
可能会修复语法错误
小智 6
而不是这样写:
Console.log "Server started and collections cleared."
Run Code Online (Sandbox Code Playgroud)
像这样写:
console.log "Server started and collections cleared."
Run Code Online (Sandbox Code Playgroud)
始终将“console”写为小写“c”,因为 JavaScript 是区分大小写的语言。
| 归档时间: |
|
| 查看次数: |
22955 次 |
| 最近记录: |