ReactNative中的定时器
componentDidMount() { this.timer = setInterval( () => {this.activeEvent() }, 500 ); } componentWillUnmount() { // 请注意Un"m"ount的m是小写 // 如果存在