Why the state is not updated?

前端 未结 0 1344
遥遥无期
遥遥无期 2020-12-02 21:41

I want the alert to display lineaData.name="new Name" and lineaData.age=33 when the button is clicked, but it keeps displaying the initial values. What wrong?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题