react es6 中變量數組 定義在什么位置?let arr0 = [7,8,9]class WatchStore extends Component { constructor(props) { super(props); this.state = { arr: [4,5,6] } } this.arr2 = [1,2,3]}上面三個數組定義的方法,該用哪種方法?數組數據不需要渲染的,只做暫時緩存對比新數據使用
react es6 中變量數組 定義在什么位置?
慕萊塢森
2019-02-26 15:14:22