function show(a, b) {
this.shu01 = a;
this.shu02 = b;
}
show.prototype.jia = function() {
return this.shu01 + this.shu02
}
show.prototype.jian = function() {
return this.shu01 - this.shu02
}
console.log(show);
var mm = new show(30, 25);
//console.log(mm);
console.log(mm.jia()); //55
console.log(mm.jian()); //15
console.log(mm.__proto__);
console.log(mm.__proto__ == show.prototype); //true
console.log(show.prototype.__proto__ == Object.prototype); //true
实例对象的隐式原型=函数对象的显式原型
函数对象的显示原型的隐式原型==Object的显式原型
FR:徐海涛(hunk Xu)