Class内部有一handleClick方法如下代码块在点击事件中触发handleClick的正确方法是handleclickconsolelog this statea thisstate;onClick= this handleclickonclick= handleclickConClick= this handleclickDonclick= = this handleClick
D. onclick={ () => this.handleClick()}
原文地址: http://www.cveoy.top/t/topic/b97q 著作权归作者所有。请勿转载和采集!