随笔分类 - React
摘要:https://yq.aliyun.com/ziliao/301671 https://segmentfault.com/a/1190000014498196 https://blog.csdn.net/u011272795/article/details/80882567
阅读全文
摘要:一、使用bind方法(构造函数内绑定) 也可以onClick={this.handleClick.bind(this)};这种方法简洁明了,但由于 function函数 在每个render上重新分配,所以有性能影响。 二、使用箭头函数 三、在15版本中,可以使用React.createClass({
阅读全文

浙公网安备 33010602011771号