black

React知识

登录

单项选择题

在组件的state上定义了name=’刘于’,那么在componentDidMount (){this.setState(name:’张帅}console.log(this.state.name)}render (){console.log(this.state.name)}中两次console.log的结果是什么()

A.张帅,刘于
B.刘于,张帅
C.刘于,刘于
D.张帅,张帅

相关考题

单项选择题 withRouter高阶组件的作用是干什么()

单项选择题 ref不能作用在下面那种组件上作引用 ()

单项选择题 react如何获取前套的子组件()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3