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
相关分类