摘要: 1.Class切换 (1)在constructor里定义初始状态 相当于开关 给个初始赋值 然后在回调函数中进行切换 constructor(props) { super(props); this.confirm = this.confirm.bind(this); this.state={ bOK 阅读全文
posted @ 2016-11-25 16:38 小儿打破贼 阅读(119) 评论(0) 推荐(0)