01 2021 档案
摘要:export default function bindActionCreators(actionCreators, dispatch) { //actionCreators是函数的情况下 if (typeof actionCreators "function") { return getAutoD
阅读全文
摘要:export default function createStore(reducer, DefaultState) { let currentState = DefaultState, currentReducer = reducer let listeners = []; function is
阅读全文
摘要:#Redux 流程 action → dispatch → store → reducer Action:描述要做的事情 1.action是一个plain-object(平面对象) 1.它的__proto__必须指向object.prototype 2.action中,必须有type属性,该属性用于
阅读全文
浙公网安备 33010602011771号