Fork me on GitHub

初始React

//在render前执行,并且执行一次 componentWillMount() { console.log('willMount') } //在render后执行,且执行一次 componentDidMount() { console.log("DidMount") } //初始化render不执
posted @ 2020-08-18 20:38  欢欢11  阅读(150)  评论(0编辑  收藏  举报