多项选择题
在js中,this是一个重点,以下关于this的说法,正确的是()
A.this指向当前调用该函数的对象
B.箭头函数会自动绑定当前作用域的this到函数内部
C.使用es6中的箭头函数,可以获取到外面的this
D.react的生命周期函数中,this指向当前组件
点击查看答案
相关考题
-
单项选择题
在新兴框架react中,react父子组件传值,父传子传递props,props发生改变,子组件触发的周期函数是那个()
A.componentWillMount
B.componentDidMount
C.componentWillReciveProps
D.componentWillUnmount -
单项选择题
在新兴框架react中,在react在组件的哪一个生命周期函数,发起ajax请求比较合适()
A.componentWillMount
B.componentDidMount
C.componentWillReciveProps
D.componentWillUnmount -
单项选择题
在新兴框架react中,react的生命周期中,初始化的时候,不执行下面哪一个周期函数()
A.componentWillMount
B.componentDidMount
C.render
D.componentDidUpdate
