var a = {num:'1'};var b = {num:'2'};function change(obj){obj.num = '3';obj = b;return obj.num;}var result = change(a);console.log(result + ' | ' + a.num); // 2 | 3
添加回答
举报
0/150
提交
取消