首页 > TAG信息列表 > clickBtn

bind绑定(改变this指向)

constructor(props){ super(props) this.state=store.getState() this.changeInputValue=this.changeInputValue.bind(this) this.storeChange=this.storeChange.bind(this) this.clickBtn=this.clickBtn.bind(this) store.subscribe(this.store