Skip to content

JavaScript原型和原型链 #10

@aicekiller

Description

@aicekiller

对象

JavaScript中所有变量都可以当对象使用,除了nullundefinedNumber类型的;
image

每一个函数都有一个prototype属性;
所有通过函数new出来的对象,都有一个__proto__指向这个函数的prototype;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions