我在componentDidMount()中获取网络数据存在state中,如何在componentWillMount()中使用,我在componentWillMount()中打印data是空值。最好贴代码给我, 我知道did只加载一次 但是网上都说在did中获取数据, will中显示, 但是就是不知道怎么写
相似问题