var arr = new Array()
var arr2 = new Array()
arr2[0] = parseInt(options.slot_st); //1633942800
arr2[1] = parseInt(options.slot_end); //1633959000
arr[0] = arr2;
that.data.together_slot=arr;
//此处省略对together_slot的处理部分,未对arr赋值
console.log(arr) //array(0=>[1633946400, 1633948200],1=>[1633942800, 1633944600])
console.log(that.data.together_slot) //array(0=>[1633946400, 1633948200],1=>[1633942800, 1633944600])
虽然没有对arr变量进行处理,但是它跟着together_slot一起发生了变化,这是怎么回事呢。
https://www.jianshu.com/p/1c142ec2ca45