React的使用小规范----长期更新

用this.state控制组件显示,用this.props控制页面业务数据,用this.other保存其余须要的属性,如计时器setInterval的idthis

相关文章
相关标签/搜索