01 2021 档案

摘要:export default function bindActionCreators(actionCreators, dispatch) { //actionCreators是函数的情况下 if (typeof actionCreators "function") { return getAutoD 阅读全文
posted @ 2021-01-05 17:30 漫漫长路上的求知者 阅读(96) 评论(0) 推荐(0)
摘要:export default function createStore(reducer, DefaultState) { let currentState = DefaultState, currentReducer = reducer let listeners = []; function is 阅读全文
posted @ 2021-01-05 15:15 漫漫长路上的求知者 阅读(110) 评论(0) 推荐(0)
摘要:#Redux 流程 action → dispatch → store → reducer Action:描述要做的事情 1.action是一个plain-object(平面对象) 1.它的__proto__必须指向object.prototype 2.action中,必须有type属性,该属性用于 阅读全文
posted @ 2021-01-04 16:21 漫漫长路上的求知者 阅读(214) 评论(0) 推荐(0)