原型练习案例 function Parent() { this.a = 1; this.b = [1, 2, this.a]; this.c = { demo: 5 }; this.show = function() { console.log(this.a, this.b, this.c.demo); ... js初学笔记 2024-08-21 38 点赞 0 评论 57 浏览