摘要:
我们先来通过两个例子来了解 new 的作用 function Test(name) Test.prototype.sayName = function () { console.log(this.name) } const t = new Test('yck') console.log(t.name 阅读全文
posted @ 2021-02-20 15:44
KaypoGeng
阅读(437)
评论(0)
推荐(0)
摘要:
cherryblog.site/ 阅读全文
posted @ 2021-02-20 14:13
KaypoGeng
阅读(92)
评论(0)
推荐(0)

浙公网安备 33010602011771号