摘要: 1.对象 <script> function Car(name,speed){ this.name=name; this.speed=speed; } Car.prototype.showName=function(){ //独立出来的公共空间,减少内存 console.log(this.name) 阅读全文
posted @ 2021-11-17 18:37 _雪 阅读(31) 评论(0) 推荐(0)