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.
功能:
App.Fullquiz.find(5)
查询我的服务器 api 以获取此记录,但此记录已在模型中可用。
如何在不查询服务器的情况下获取此记录?
我认为你可以使用
store.getById()
http://emberjs.com/api/data/classes/DS.Store.html#method_getById
通过给定类型和 ID 获取记录,而不触发提取。
祝你好运