在 setState 里使用回调 heycn 2022-06-28 75 阅读1分钟 这是我最近在做项目的时候,碰到的,记录一下 this.setState( { a: param.a2, b: param.b2, c: param.c3 }, () => this.api() )