feat: 原型

This commit is contained in:
rookielzy 2021-09-15 14:56:35 +08:00
parent 15f8bec3ce
commit ed947c7ed7

View File

@ -41,6 +41,7 @@
- [this](#this) - [this](#this)
- [闭包](#闭包) - [闭包](#闭包)
- [作用域](#作用域) - [作用域](#作用域)
- [原型](#原型)
- [new](#new) - [new](#new)
- [变量提升](#变量提升) - [变量提升](#变量提升)
- [Class(类)](#class类) - [Class(类)](#class类)
@ -150,6 +151,16 @@ JS 数据类型分为两大类及八种数据类型,注意别漏了 ES6 新增
- [ ] [You Don't Know JS Yet: Scope & Closures](https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed/scope-closures) - [ ] [You Don't Know JS Yet: Scope & Closures](https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed/scope-closures)
- [ ] [The battle between function scope and block scope](https://www.deadcoderising.com/2017-04-11-es6-var-let-and-const-the-battle-between-function-scope-and-block-scope/) - [ ] [The battle between function scope and block scope](https://www.deadcoderising.com/2017-04-11-es6-var-let-and-const-the-battle-between-function-scope-and-block-scope/)
### 原型
- [ ] 文档
- [ ] [原型](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes)
- [ ] 推荐文章
- [ ] [JavaScript 深入之从原型到原型链](https://github.com/mqyqingfeng/Blog/issues/2)
- [ ] [You Don't Know JS: this & Object Prototypes](https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/this%20%26%20object%20prototypes/ch5.md)
- [ ] [深入理解 JavaScript 原型](https://mp.weixin.qq.com/s/1UDILezroK5wrcK-Z5bHOg)
- [ ] [深度解析原型中的各个难点](https://juejin.cn/post/6844903575974313992)
- [ ] [Prototypes in JavaScript](https://betterprogramming.pub/prototypes-in-javascript-5bba2990e04b) 需自备梯子
### new ### new
`new` 操作符可以帮助我们构建出一个实例,并且绑定上 `this` `new` 操作符可以帮助我们构建出一个实例,并且绑定上 `this`