我是流星新手。我刚刚使用流星创建了一个 Hello world 项目。目前我的项目结构非常简单。
- 根文件夹
 
- abc.css
 - abc.html
 - abc.js
 
在 abc.js 我只是尝试声明一个像这样的变量:
var lists = new Meteor.Collection("Lists");
if (Meteor.isClient) {
  Template.hello.greeting = function () {
  return "My List.";
  };
  Template.hello.events({
   'click input' : function () {
   if (typeof console !== 'undefined')
      console.log("You pressed the button");
   }
  });
}
if (Meteor.isServer) {
  Meteor.startup(function () {
  });
}
但是当我运行它时,我在浏览器控制台中收到以下错误:
[18:17:32.895] ReferenceError:未定义列表
我不确定我做错了什么。