Skip to content

文档内容校验 (#433) #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
25ad994
docs: update vue.md
qiufeihong2018 Apr 7, 2024
b488876
Merge branch 'febobo:master' into master
qiufeihong2018 Apr 7, 2024
7e39017
docs: update spa.md
qiufeihong2018 Apr 7, 2024
afff55c
docs: update spa.md
qiufeihong2018 Apr 7, 2024
81767da
docs: update first_page_time.md
qiufeihong2018 Apr 10, 2024
686cd51
docs: update first_page_time.md
qiufeihong2018 Apr 10, 2024
713db6e
docs: update data_object_add_attrs.md
qiufeihong2018 Apr 10, 2024
29cd10a
docs: update communication.md
qiufeihong2018 Apr 11, 2024
14c693f
docs: update communication.md
qiufeihong2018 Apr 11, 2024
c344753
docs: update communication.md
qiufeihong2018 Apr 11, 2024
08b8f1e
docs: update communication.md
qiufeihong2018 Apr 11, 2024
1f5563d
docs: update communication.md
qiufeihong2018 Apr 11, 2024
07da59b
fix: css部分属性继承错别字 #429
qiufeihong2018 Apr 11, 2024
fc25e4e
fix: 错别字修改-想改为相 #419
qiufeihong2018 Apr 11, 2024
cabeddd
docs: update nexttick.md
qiufeihong2018 Apr 12, 2024
ade63d5
docs: update mixin.md
qiufeihong2018 Apr 12, 2024
fe1a3a0
docs: update slot.md
qiufeihong2018 Apr 12, 2024
32cbfa8
docs: update slot.md
qiufeihong2018 Apr 12, 2024
0855738
docs: update slot.md
qiufeihong2018 Apr 12, 2024
f2328f2
docs: update docs/vue/modifier.md
qiufeihong2018 Apr 15, 2024
35397b6
docs: update docs/vue/filter.md
qiufeihong2018 Apr 15, 2024
d6a91b1
docs: update docs/vue/vnode.md
qiufeihong2018 Apr 15, 2024
fcc89e2
docs: update docs/vue/vnode.md
qiufeihong2018 Apr 16, 2024
50a5798
docs: update docs/vue/vnode.md
qiufeihong2018 Apr 16, 2024
2cbbdc2
docs: update docs/vue/vnode.md
qiufeihong2018 Apr 16, 2024
9577923
docs: update docs/vue/vnode.md
qiufeihong2018 Apr 16, 2024
ec66a70
docs: update docs/vue/axios.md
qiufeihong2018 Apr 16, 2024
788af24
docs: update docs/vue/axios.md
qiufeihong2018 Apr 16, 2024
517fe14
docs: update docs/vue/axiosCode.md
qiufeihong2018 Apr 16, 2024
c672d9d
docs: update docs/vue/cors.md
qiufeihong2018 Apr 17, 2024
caf2a7a
docs: update docs/vue/vue3_vue2.md
qiufeihong2018 Apr 18, 2024
39b8095
docs: update docs/vue3/composition.md
qiufeihong2018 Apr 18, 2024
9643fda
docs: update docs/vue3/modal_component.md
qiufeihong2018 Apr 18, 2024
c08dba1
fix: resolve array demo
qiufeihong2018 Apr 19, 2024
16e8ec4
docs: update docs/es6/array.md
qiufeihong2018 Apr 19, 2024
4196676
docs: update docs/es6/object.md
qiufeihong2018 Apr 19, 2024
f25de4e
docs: update docs/es6/module.md
qiufeihong2018 Apr 22, 2024
c648b08
docs: update docs/JavaScript/data_type.md
qiufeihong2018 Apr 23, 2024
6b10968
docs: update docs/JavaScript/string_api.md
qiufeihong2018 Apr 23, 2024
b3cf495
docs: update docs/JavaScript/copy.md
qiufeihong2018 Apr 23, 2024
d29cc63
docs: update docs/JavaScript/closure.md
qiufeihong2018 Apr 23, 2024
f3f6319
docs: update docs/JavaScript/inherit.md
qiufeihong2018 Apr 23, 2024
54c8052
docs: update docs/JavaScript/event_Model.md
qiufeihong2018 Apr 23, 2024
94f9d12
docs: update docs/JavaScript/bind_call_apply.md
qiufeihong2018 Apr 24, 2024
ef2b2e8
docs: update docs/JavaScript/loss_accuracy.md
qiufeihong2018 Apr 30, 2024
00d1975
docs: update docs/JavaScript/visible.md
qiufeihong2018 Apr 30, 2024
bb02fe0
docs: update security.md
qiufeihong2018 May 1, 2024
66900d0
docs: update docs/React/React.md
qiufeihong2018 May 1, 2024
cead635
docs: update docs/React/Real DOM_Virtual DOM.md
qiufeihong2018 May 2, 2024
9f0908f
docs: update life cycle.md
qiufeihong2018 May 2, 2024
efc7aad
docs: update docs/React/state_props.md
qiufeihong2018 May 8, 2024
897df65
docs: update docs/React/super()_super(props).md
qiufeihong2018 May 8, 2024
18d2c33
docs: update docs/React/super()_super(props).md
qiufeihong2018 May 8, 2024
f61b937
docs: update docs/React/Building components.md
qiufeihong2018 May 8, 2024
062dacd
docs: update docs/React/redux.md
qiufeihong2018 May 8, 2024
0003754
docs: update docs/React/React Router model.md
qiufeihong2018 May 8, 2024
bc0da25
docs: update docs/React/Fiber.md
qiufeihong2018 May 9, 2024
178943b
docs: update docs/React/Fiber.md
qiufeihong2018 May 9, 2024
47fc2c4
docs: update docs/webpack/performance.md
qiufeihong2018 Jun 4, 2024
fee7884
docs: update docs/webpack/performance.md
qiufeihong2018 Jun 4, 2024
5c55d2a
docs: update docs/JavaScript/closure.md
qiufeihong2018 Jun 25, 2024
1c92b7e
docs: update docs/JavaScript/event_Model.md
qiufeihong2018 Jun 25, 2024
d350986
docs: update docs/JavaScript/event_Model.md
qiufeihong2018 Jun 25, 2024
cbd7d17
docs: update docs/css/selector.md
qiufeihong2018 Jun 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update docs/React/redux.md
  • Loading branch information
qiufeihong2018 committed May 8, 2024
commit 062dacd23223779da692c67d468c02b14b231a57
10 changes: 6 additions & 4 deletions docs/React/import css.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export default Test;

上面可以看到,`css`属性需要转换成驼峰写法

这种方式优点:
这种方式

优点:

- 内联样式, 样式之间不会有冲突
- 可以动态获取当前state中的状态
Expand Down Expand Up @@ -133,7 +135,7 @@ export default class App extends PureComponent {

将`css`文件作为一个模块引入,这个模块中的所有`css`,只作用于当前组件。不会影响当前组件的后代组件

这种方式是`webpack`特工的方案,只需要配置`webpack`配置文件中`modules:true`即可
这种方式是`webpack`特有的方案,只需要配置`webpack`配置文件中`modules:true`即可

```jsx
import React, { PureComponent } from 'react';
Expand Down Expand Up @@ -235,8 +237,8 @@ export default Test;

通过上面四种样式的引入,可以看到:

- 在组件内直接使用`css`该方式编写方便,容易能够根据状态修改样式属性,但是大量的演示编写容易导致代码混乱
- 组件中引入 .css 文件符合我们日常的编写习惯,但是作用域是全局的,样式之间会层叠
- 在组件内直接使用`css`该方式编写方便,容易能够根据状态修改样式属性,但是大量的样式编写容易导致代码混乱
- 组件中引入 .css 文件符合我们日常的编写习惯,但是作用域是全局的,样式之间会重叠
- 引入.module.css 文件能够解决局部作用域问题,但是不方便动态修改样式,需要使用内联的方式进行样式的编写

- 通过css in js 这种方法,可以满足大部分场景的应用,可以类似于预处理器一样样式嵌套、定义、修改状态等
Expand Down
4 changes: 2 additions & 2 deletions docs/React/redux.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

整个流程就是借书的用户需要先存在,然后需要借书,需要一句话来描述借什么书,图书馆管理员听到后需要查一下记录本,了解图书的位置,最后图书馆管理员会把这本书给到这个借书人

转换为代码是,`React Components` 需要获取一些数据, 然后它就告知 `Store` 需要获取数据,这就是就是 `Action Creactor` , `Store` 接收到之后去 `Reducer` 查一下, `Reducer` 会告诉 `Store` 应该给这个组件什么数据
转换为代码是,`React Components` 需要获取一些数据, 然后它就告知 `Store` 需要获取数据,这就是 `Action Creactor` , `Store` 接收到之后去 `Reducer` 查一下, `Reducer` 会告诉 `Store` 应该给这个组件什么数据



Expand Down Expand Up @@ -173,7 +173,7 @@ store.dispatch({
- createStore可以帮助创建 store
- store.dispatch 帮助派发 action , action 会传递给 store
- store.getState 这个方法可以帮助获取 store 里边所有的数据内容
- store.subscrible 方法订阅 store 的改变,只要 store 发生改变, store.subscrible 这个函数接收的这个回调函数就会被执行
- store.subscribe 方法订阅 store 的改变,只要 store 发生改变, store.subscribe 这个函数接收的这个回调函数就会被执行


## 参考文献
Expand Down