// 构造函数Person
function Person(name, age) {
this.age = age;
this.name = name;
this.say = function() {
console.log("我叫", this.name);
}
}
// 验证:实例对象p的constructor属性指向构造函数Person
var p = new Person("张三", 18);
console.log(p.constructor === Person); //true,验证结果正确