const a =[1,2,3]; const b =a[1]; a.length =0; console.log(a) console.log(b) chrome 控制台输出  问题: arr.length=0 不就是清空数组的操作吗? 为什么会出现这样的情况呢?
阅读量:15
点赞量:0