我创建了简单的应用程序:
$ meteor创建LendLib
并在LendLib.js的顶部添加了一个集合:
var lists = new Meteor.Collection("Lists");
if (Meteor.isClient) {
Run Code Online (Sandbox Code Playgroud)
现在我启动Chrome浏览器并打开控制台:
> lists
ReferenceError: lists is not defined
> some = new Meteor.Collection("some");
Meteor.Collection {_makeNewID: function, _transform: null, _manager: Meteor._LivedataConnection, _collection: LocalCollection, _name: "some"…}
Run Code Online (Sandbox Code Playgroud)
为什么我无法获取我的收藏清单?