原始数据类型: number,string,boolean,undefined, null,object
function Person(name,age,salary) { this.name = name; this.age = age; this.salary = salary; } function f1(person) { person.name = "ls"; person = new Person("aa",18,10); } var p = new Person("zs",18,1000); console.log(p.name);//zs f1(p); console.log(p.name);//is
https://www.cnblogs.com/luckq/p/9681259.html
原文:https://www.cnblogs.com/wanguofeng/p/10504090.html