摘要: 1.this的使用场景 我们先把this的使用场景分为两大类:函数外和函数内: 函数外的this 就是在全局代码里,直接使用this: "use strict"; let name = "window"; console.log(this); console.log(this.name); // W 阅读全文
posted @ 2021-03-02 17:16 木子草明 阅读(362) 评论(1) 推荐(1) 编辑