react官方文档建议我们在componentDidMount
阶段请求后台数据
this is a good place to instantiate the network request. Setting state in this method will trigger a re-rendering.
vue官方例子却在created
阶段请求数据 https://cn.vuejs.org/v2/examp...
为什么不在mounted
阶段?
到底在哪个阶段请求数据初始化界面最佳?
相关分类