React事件杂记及源码分析
摘要:前提 最近通过阅读React官方文档的事件模块,发现了其主要提到了以下三个点 带着问题,通过查询资料和源码来探寻~ 1.调用方法时需要手动绑定this 先从一段官方代码看起: 代码中的注释提到了一句话: This binding is necessary to make `this` work in
阅读全文
posted @ 2018-11-29 20:11
posted @ 2018-11-29 20:11
posted @ 2018-11-19 21:11
posted @ 2018-11-12 15:29
posted @ 2018-11-11 10:44
posted @ 2018-11-10 11:47
posted @ 2018-11-08 21:44
posted @ 2018-11-06 20:55