摘要: 1、事件处理中的this指针问题 在 react 中,用 class 声明一个组件,调用 class 中的方法时,如果该方法中有 this 且没有手动绑定 this 指针,则会发生 this 指向 undefined 的问题。 1.1、如何手动绑定方法中的 this 指针 1.1.1、在构造函数中用 阅读全文
posted @ 2019-08-19 17:06 wenxuehai 阅读(263) 评论(0) 推荐(0) 编辑
//右下角添加目录