-
1- 在運行中:
1)componentWiilReceiveProps() 和 shouldComponentUpdate()中不能使用setState()
2)在componentWillUpdate()中可以使用setState()來修改state
3)在componentDidUpdate()中可以獲取dom元素
查看全部 -
注意前面兩個生命周期函數前后的對應關系查看全部
-
記住這個頁面和網址~查看全部
-
推薦使用es6的方式 聲明組件
查看全部 -
啟新建項目?
查看全部
舉報
0/150
提交
取消