this.props_
請(qǐng)問 const { age, ...otherProps } = this.props_ ? 這個(gè)this.props_和 this.props 有什么區(qū)別? ?一般是用 this.props吧?
請(qǐng)問 const { age, ...otherProps } = this.props_ ? 這個(gè)this.props_和 this.props 有什么區(qū)別? ?一般是用 this.props吧?
2019-06-27
舉報(bào)
2019-11-28
故意敲_的,this.props_會(huì)報(bào)錯(cuò)
2019-06-29
你自己敲一下試試就知道了,我們公司自己寫的高階組件就是用this.prop,沒有那個(gè)下劃線的