摘要: 最近在React官网学习Handling Events这一章时,有一处不是很明白。代码如下: 注意到在Toggle类的构造函数constructor类中,有一句注释:“This binding is necessary to make `this` work in the callback”,即在构 阅读全文
posted @ 2018-10-20 15:56 箫音700 阅读(211) 评论(0) 推荐(0)