![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试题
tamia_nice
这个作者很懒,什么都没留下…
展开
-
面试题--new关键字
<h2>new关键字</h2> <script> function Person() { this.name = '小鱼'; this.fn = function () { console.log(`名字是${this.name}`) } } let person1 = new Person(); ...原创 2021-10-24 19:08:25 · 74 阅读 · 0 评论 -
面试题--原型与原型链
```css<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <titl.原创 2021-10-24 19:04:03 · 182 阅读 · 0 评论 -
面试题--闭包
Document 闭包 为什么要有闭包 <script> let a = '曾同学'; function fn1() { let b = 1; console.log(a); } console.log(b); //为何访问不到b // AO => Active Object 临时变量对象: 方法与局部...原创 2021-10-24 18:41:51 · 59 阅读 · 0 评论