您的位置: 首页 > 文章 > redux redux 分类: 文章 • 2024-02-17 23:41:10 1.redux 首先,用户发出 Action,然后,Store 自动调用 Reducer,并且传入两个参数:当前 State 和收到的 Action,Reducer 会返回新的 State ,State 一旦有变化,Store 就会调用监听函数,listener可以通过store.getState()得到当前状态。如果使用的是 React,这时可以触发重新渲染 View。