ReferenceError:未定义控制台



我正在与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)

我把咖啡和html文件放在这里的要点:https://gist.github.com/ppedrazzi/5303493

谢谢你的任何见解!!

看起来像你的bingo.coffee的第334行。

在javascript中所有内容都是区分大小写的所以使用小写的c

console.log "Server started and collections cleared."

代替

Console.log "Server started and collections cleared."

可能会修复语法错误

不这样写:

Console.log "Server started and collections cleared."

这样写:

console.log "Server started and collections cleared."

总是用小写的'c'写'console',因为JavaScript是区分大小写的语言。

相关内容

最新更新