mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Chinese docs typo
This commit is contained in:
@@ -137,4 +137,4 @@ var content = (
|
||||
|
||||
> 注意:
|
||||
>
|
||||
> JSX 类似于 HTML,但不完全一样。参考 [JSX 陷阱](/react/docs/jsx-gotchas.html) 了解主要不同。
|
||||
> JSX 类似于 HTML,但不完全一样。参考 [JSX 陷阱](/react/docs/jsx-gotchas-zh-CN.html) 了解主要不同。
|
||||
|
||||
@@ -52,4 +52,4 @@ Props 应该被当作禁止修改的。修改 props 对象可能会导致预料
|
||||
|
||||
## 这个奇怪的 `...` 标记是什么?
|
||||
|
||||
这个 `...` 操作符(也被叫做)已经被 [ES6 数组](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator) 支持。相关的还有 ES7 规范草案中的 [Object 剩余和展开属性(Rest and Spread Properties)](https://github.com/sebmarkbage/ecmascript-rest-spread)。我们利用了这些还在制定中标准中已经被支持的特性来使 JSX 拥有更优雅的语法。
|
||||
这个 `...` 操作符(增强的操作符)已经被 [ES6 数组](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator) 支持。相关的还有 ES7 规范草案中的 [Object 剩余和展开属性(Rest and Spread Properties)](https://github.com/sebmarkbage/ecmascript-rest-spread)。我们利用了这些还在制定中标准中已经被支持的特性来使 JSX 拥有更优雅的语法。
|
||||
|
||||
@@ -6,7 +6,7 @@ prev: jsx-gotchas-zh-CN.html
|
||||
next: multiple-components-zh-CN.html
|
||||
---
|
||||
|
||||
我们已经学习如何使用 React [显示数据](/react/docs/displaying-data.html)。现在让我们来学习如何创建交互式界面。
|
||||
我们已经学习如何使用 React [显示数据](/react/docs/displaying-data-zh-CN.html)。现在让我们来学习如何创建交互式界面。
|
||||
|
||||
|
||||
## 简单例子
|
||||
|
||||
@@ -149,6 +149,7 @@ z; // { a: 3, b: 4 }
|
||||
## 使用 Underscore 来传递
|
||||
|
||||
如果不使用 JSX,可以使用一些库来实现相同效果。Underscore 提供 `_.omit` 来过滤属性,`_.extend` 复制属性到新的对象。
|
||||
|
||||
```javascript
|
||||
var FancyCheckbox = React.createClass({
|
||||
render: function() {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
id: flux-overview-zh-CN
|
||||
title: Flux 应用架构
|
||||
permalink: flux-overview-zh-CN.html
|
||||
---
|
||||
|
||||
本页被移到了 Flux 网站。[点击访问](http://facebook.github.io/flux/docs/overview.html)。
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
id: flux-todo-list-zh-CN
|
||||
title: Flux TodoMVC 教程
|
||||
permalink: flux-todo-list-zh-CN.html
|
||||
---
|
||||
|
||||
本页被移到了 Flux 网站。[点击访问](http://facebook.github.io/flux/docs/todo-list.html)。
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
id: getting-started-zh-CN
|
||||
title: 入门教程
|
||||
permalink: getting-started-zh-CN.html
|
||||
next: tutorial-zh-CN.html
|
||||
redirect_from: "docs/index-zh-CN.html"
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user