Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add the translation of defining-a-store #19

merged 2 commits into from

2 participants


No description provided.

@towerhe towerhe merged commit bbec4e5 into emberjs-cn:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 26, 2013
  1. @zernel
Commits on Mar 29, 2013
  1. @zernel

    Update the translation

    zernel authored
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 1 deletion.
  1. +13 −1 source/guides/models/
14 source/guides/models/
@@ -1,14 +1,21 @@
-## Defining a Store
+## 创建一个存储器(Defining a Store)
Every application using Ember Data has a store. The store is the
repository that holds loaded models, and is responsible for retrieving
models that have not yet been loaded.
+每一个使用 Ember Data 的应用都会有一个存储器。这个存储器会成为已加载模型的贮存器,并且检索还未被加载的模型。
Typically, you will interact with models directly, not the store.
However, you do need to tell Ember.js that you want Ember Data to manage
your models. To do so, simply define a subclass of `DS.Store` on your
+通常,你可以直接跟模型交互,而不使用存储器。但是你需要让 Ember.js 知道你现在在使用 Ember Data 来管理你的模型。
App.Store = DS.Store.extend({
revision: 12
@@ -20,12 +27,17 @@ number, and is used by Ember Data to notify you of breaking changes to
the public API. This will be removed once Ember Data reaches 1.0. See
the [Breaking Changes document][1] for more information.
+注意这里的`revision`属性,它是 API 的修订版本号,在Ember Data 1.0 版本之前用来提醒你公共 API 的重大更改。
+查看[Breaking Changes 文档][1]以获取更多信息。
If you want to customize the store, you can do so when creating the
subclass. For example, if you wanted to use an adapter other than the
default `DS.RESTAdapter`, you would do so like this:
App.Store = DS.Store.extend({
revision: 12,
Something went wrong with that request. Please try again.