单项选择题
在react框架中,以下那个属于react的存在期()
A.getDefaultProps
B.getInitialState
C.componentWillMount
D.shouldComponentUpdate
点击查看答案
相关考题
-
单项选择题
在react框架中,componentWillUnmount生命周期的作用是()
A.接收到新的props或者state后
B.组件被移除之前被调用,可以用于做一些清理工作
C.完成渲染新的props或者state后调用
D.组件是否应当渲染新的props或state -
单项选择题
在react框架中,在react中属于实例期的生命周期都有哪些()
A.componentWillReceiveProps
B.shouldComponentUpdate
C.componentWillMount
D.componentWillUnmount -
单项选择题
在react框架中,下面关于this说法错误得是()
A.apply()的参数为空时,默认调用dom对象
B.js得函数如果没有指定对象调用,则this指向window
C.函数使用场合的不同,this的值会发生变化。但是有一个总的原则,那就是this指的是,调用函数的那个对象
D.函数运行时,自动生成的一个内部对象,就是this
