摘要: 在componentDidMount,原因如下: componentDidMount指的是第一次插入dom完毕,无论在同步和异步模式下都仅会触发一次 在目前16.3之前的react版本中 ,react是同步渲染的,在componentWillMount中接口调用,有可能不会触发界面渲染,而在comp 阅读全文
posted @ 2020-11-04 18:57 你的小羊羊 阅读(4765) 评论(0) 推荐(0)