Fork me on GitHub
摘要: 最近在React官网学习Handling Events这一章时,有一处不是很明白。代码如下: 注意到在Toggle类的构造函数constructor类中,有一句注释:“This binding is necessary to make `this` work in the callback”,即在构 阅读全文
posted @ 2017-11-03 11:54 钟衷7 阅读(10826) 评论(8) 推荐(5) 编辑