fix: 精炼语言 (#204)

This commit is contained in:
Zhicheng Wang 2017-03-08 14:00:14 +08:00
parent 95f6249eb4
commit 2eedd15cd1

View File

@ -112,9 +112,8 @@ code-example(language="sh" class="code-shell").
Because we know where we are heading, it makes sense to separate the hero data Because we know where we are heading, it makes sense to separate the hero data
from the class implementation from the start. from the class implementation from the start.
我们本该在这个组件类中定义英雄列表。 我们固然可以在这个组件类中定义英雄列表,但显然,最终我们还是得从一个数据服务中获取这些英雄。
但显然,我们最终还是得从一个数据服务中获取这些英雄。 因此,不如索性一开始就把英雄数据隔离到一个类中来实现。
正因如此,一开始就应该把英雄数据隔离到一个类中来实现。
:marked :marked
### Displaying heroes in a template ### Displaying heroes in a template