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]
时间: 2024-10-12 00:19:00
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]