Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我确信合金集合在模型之前首先被初始化。但我不确定这个初始化什么时候开始。
您自己初始化集合或模型。
通过 js:调用Alloy.createModel(), Alloy.createCollection(),Alloy.Models.instance()或Alloy.Collections.instance()
Alloy.createModel()
Alloy.createCollection()
Alloy.Models.instance()
Alloy.Collections.instance()
通过标记:使用<Model />或<Collection />标记
<Model />
<Collection />
文档在这里