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]
上面三个数组定义的方法,该用哪种方法?
数组数据不需要渲染的,只做暂时缓存对比新数据使用
相关分类