var a = [1,2,3]; var b = a; a = [4,5,6]; alert(b); //[1,2,3]
===========================================
var a = [1,2,3]; var b = a; a.pop(); alert(b); //[1,2]
本文共 212 字,大约阅读时间需要 1 分钟。
var a = [1,2,3]; var b = a; a = [4,5,6]; alert(b); //[1,2,3]
===========================================
var a = [1,2,3]; var b = a; a.pop(); alert(b); //[1,2]
转载于:https://www.cnblogs.com/chris-oil/p/6348042.html