我在书中找到了一个代码片段" Meteor.js入门" :
var lists= new Meteor.Collection("Lists");
if (Meteor.isClient) {
//lists here is unreachable
}
if (Meteor.isServer) {
//lists here is unreachable
}
为客户端/服务器端启动示例lists
为undefined
之后。这种共享集合的方法对Meteor v0.9.3仍然有效吗?这本书已经很老了#34; (首次发布:2012年12月)如果考虑到meteor.js的状态。