摘要: 一、State 1、什么是 state 一个组件的显示形态可以由数据状态和外部参数决定,其中,数据状态为 state,外部参数为 props 2、state 的使用 组件初始化时,通过 this.state 给组件设置一个初始的 state,在第一次 render 时就会用这个数据渲染组件 3、se 阅读全文
posted @ 2019-08-08 22:46 Leophen 阅读(519) 评论(0) 推荐(0)