react组件基础之生命周期 发表于 2018-03-21 | 分类于 前端 , react 字数统计: 48 | 阅读时长 ≈ 1 生命周期12345678componentWillMount(){ //页面将要加载的时候 //定义你的逻辑即可 console.log("Index - componentWillMount");}componentDidMount(){ //页面加载完了的时候 console.log("Index - componentDidMount");} 觉得本站不错,请作者吃根辣条 打赏 微信支付 支付宝