redux 的 reducer 函数不能改变原 state 2020-09-23 本文已影响0人 xcyzjs 可以使用如下方法来完全复制原来的 state, 再进行操作 对于数组: concat, slice, 或 spread operator 对于对象: Object.assign 或 spread operator 参考 valentinog.com