面向对象原型链
2017-08-09 20:11:28 10 举报
js面向对象原型链图例 2017/8/9
作者其他创作
大纲/内容
Book protot Type
object.protot.Type
实例化
press=\"北京大学出版社\"
object构造函数
0x22
Dog原型对象
书籍
_protot_
._protot_
animate原型对象
null
0x66
read函数
sellAddress
b1
object原型对象就是最顶端的原型对象
.prototype
auto=\"毛姆\
price=42.00
pric=49
animate构造函数
0x487
dog
卓越亚马逊
constructor
priess=华东师范大学出版社
0x45
新华书店\"
typeName
0x4865
_peotot_
Dog构造函数
b2
name=人性的枷锁\"
read
name=\"声名狼藉者的的生活\"\"
_peotot_ 0x22
author=福柯
object原型对象
function Animal() { } function Dog() { } Dog.prototype = Animal.prototype; var dog = new Dog();
0 条评论
下一页