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.
如何在 Ember.js 中创建一个通用模型,如下所示?
{{#each item in mythings}} {{item}} {{/item}}
在控制器中创建一个属性,就像在这个 jsbin中一样。
App.ApplicationController = Ember.Controller.extend({ mythings: ['foo', 'bar', 'baz'] });