1.原型链
2021-08-12 23:20:08 举报
AI智能生成
登录查看完整内容
相似推荐
查看更多
1.用户注册登录
1.课件列表展示-数据迁移
原型链
原型
JS原型链
OA管理平台高保真原型设计1
原型链
原型继承
原型链
1.基本功能_充值消费
js原型链
作者其他创作
大纲/内容
Person.prototype
__proto__
对象中找不到属性,就从原型找
Person
constructor
person对象
new Person()
Function.prototype
person.prototype = {} 会导致constructor丢失
Function
Object.prototype
prototype
Person函数
__proto__指向构造函数原型对象
Function的__proto__和prototype等价
就是prototype.__proto__ === Object.prototype
一切对象的__proto__都指向Object.prototype
就是函数.__proto__ === Function.prototype
一切函数的__proto__都指向Function.prototype
除了明显new出来的实例外,所有的constructor都指向Function
总结
prototype
new Function()
Function函数
null
new Object()
Object函数
1.原型链
0 条评论
回复 删除
下一页