客户端/服务器端共享的集合

时间:2014-10-02 14:07:03

标签: meteor

我在书中找到了一个代码片段" Meteor.js入门" :

var lists= new Meteor.Collection("Lists");  

if (Meteor.isClient) { 
    //lists here is unreachable
}
if (Meteor.isServer) { 
    //lists here is unreachable
}

为客户端/服务器端启动示例listsundefined之后。这种共享集合的方法对Meteor v0.9.3仍然有效吗?这本书已经很老了#34; (首次发布:2012年12月)如果考虑到meteor.js的状态。

0 个答案:

没有答案