Skip to content

Commit

Permalink
修复引号问题
Browse files Browse the repository at this point in the history
  • Loading branch information
armyja committed May 26, 2017
1 parent b9925c7 commit 3c0896c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 4 additions & 5 deletions demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

### 练习

1. 修改源码,将显示文字变为 Hello React!
1. 修改源码,将显示文字变为 Hello React!

## React 组件语法

Expand Down Expand Up @@ -378,7 +378,7 @@ $ npm start
</div>
```
(2) 进行数据处理、并包含状态的组件,称为”容器组件“。Redux 使用`connect`方法,自动生成 UI 组件对应的”容器组件“
(2) 进行数据处理、并包含状态的组件,称为“容器组件”。Redux 使用`connect`方法,自动生成 UI 组件对应的“容器组件”
```javascript、
// MyComponent 是纯的 UI 组件
Expand Down Expand Up @@ -981,7 +981,7 @@ nightmare
.end()
```

上面代码表示,打开淘宝首页,在搜索框键入`电视机`,点击”搜索“按钮,等待`#spulist-grid`元素出现,在页面内注入(`evaluate`)代码,将执行结果返回。
上面代码表示,打开淘宝首页,在搜索框键入`电视机`,点击“搜索”按钮,等待`#spulist-grid`元素出现,在页面内注入(`evaluate`)代码,将执行结果返回。

```javascript
.then(function (result) {
Expand All @@ -1000,7 +1000,7 @@ Nightmare 会返回一个 Promise 对象,`then`方法指定操作成功的回
$ node taobao.test.js
```

正常情况下,运行结束后,命令行会显示淘宝”电视机“搜索结果的第一项。
正常情况下,运行结束后,命令行会显示淘宝“电视机”搜索结果的第一项。

4)浏览器打开`index.html`文件,这是 React 练习时做过的一个例子,点击`Hello World`,标题会变成`Hello Clicked`。我们就要编写测试脚本,测试这个功能。

Expand Down Expand Up @@ -1181,4 +1181,3 @@ $ git push
### 练习

1. 修改`hello.js`,让其输出`Hello Node`。并修改测试用例`hello.test.js`,使之能够通过 Travis CI 的自动构建。

3 changes: 1 addition & 2 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ App.Router = Backbone.Router.extend({

> SPA = Single-page application
2010年后,前端工程师从开发页面,变成了开发”前端应用“(跑在浏览器里面的应用程序)。
2010年后,前端工程师从开发页面,变成了开发“前端应用”(跑在浏览器里面的应用程序)。

---

Expand Down Expand Up @@ -397,4 +397,3 @@ Node = JavaScript + 操作系统 API
- VR 端
- ……
- 云工程师

3 changes: 1 addition & 2 deletions docs/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $ npm -v

REST 是浏览器与服务器通信方式的一种设计风格。

它的全称是“REpresentational State Transfer”,中文意为”表现层状态转换“
它的全称是“REpresentational State Transfer”,中文意为“表现层状态转换”

- Resource:资源
- Representation:表现层
Expand Down Expand Up @@ -158,4 +158,3 @@ router.use(function(req, res, next) {
next();
});
```

0 comments on commit 3c0896c

Please sign in to comment.