主要思想:循环一个列表,通过index改变原数组项,并通过state更改原数组,使列表重新渲染。
index
state
页面数据可以通过store存储,这样就可以跨页面修改数据。
参考:https://juejin.cn/post/6844903989289418760