您打赌JavaScript中有指针;对象是指针。//this will make object1 point to the memory location that object2 is pointing atobject1 = object2;//this will make object2 point to the memory location that object1 is pointing at function myfunc(object2){}myfunc(object1);如果不再指向存储位置,则该位置的数据将丢失。与C语言不同,您看不到指针的实际地址或指针的实际值,只能取消引用它(在它指向的地址处获取值)。