FantasyGao's Blog

Trying to find the truth

javascript 原型链

图解javascript原型链

示意图:123456function Person(name){ this.name = name}var me = new Person('FantasyGao')var obj = {} 总结 Object,Function,自定义函数类(Person)有prototype属性,其余没有 Function的peototype属性与proto属性指向......