Skip to content

Commit 964c100

Browse files
committed
modify by dk
1 parent edff2e4 commit 964c100

File tree

720 files changed

+159491
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

720 files changed

+159491
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/reactERP/web/node_modules/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ React 是 facebook 开源的一套框架,可总结为以下几个特点:
66
- DATA FLOW: React是单向响应的数据流。
77

88
# 技术点
9-
- JSX 语法
10-
- 组件
9+
- [JSX 语法](https://github.com/dk-lan/react/tree/master/jsx)
10+
- [组件](https://github.com/dk-lan/react/tree/master/component)
1111
- 生命周期
1212
- 路由
1313
- webpack + es6 环境搭建

component/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import React from 'react';
4848
import ReactDOM from 'react-dom';
4949
ReactDOM.render(<Component1 />, document.getElementById('div1'));
5050
```
51-
[效果预览](https://dk-lan.github.io/react/component/src/define/define.html)
51+
[效果预览]https://dk-lan.github.io/react/component/src/define/define.html)
5252

5353
## 属性(props)
5454
因为组件的调用是 html 标签的形式,而 html 标签是可以添加属性,所以在 React 的组件当中也是可以添加自定义的属性,而属性的获取则用 `this.props`
@@ -182,6 +182,7 @@ ReactDOM.render(<Component1 subjects={_subjects}/>, document.getElementById('div
182182
1. 如果当前组件没有子节点,它就是 undefined
183183
2. 如果有一个子节点,数据类型是 object
184184
3. 如果有多个子节点,数据类型就是 array
185+
185186
为了解决这种数据类型不一致导致在使用的过程中要不断判断的情况,React 提供了一个方法`Reacth.Children`来处理该属性。
186187
```javascript
187188
var Component1 = React.createClass({

reactERP/api/node_modules/.bin/mime

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactERP/api/node_modules/.bin/mime.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactERP/api/node_modules/.bin/semver

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactERP/api/node_modules/.bin/semver.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactERP/api/node_modules/accepts/HISTORY.md

Lines changed: 212 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactERP/api/node_modules/accepts/LICENSE

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)