摘要: 这方面最直接的例题为: function Foo() { this.bar = "Lucas" } const instance = new Foo() console.log(instance.bar) 答案将会输出 Lucas。但是这样的场景往往伴随着下一个问题:new 操作符调用构造函数,具体 阅读全文
posted @ 2021-02-25 13:46 冲鸭fighting 阅读(133) 评论(0) 推荐(0)