摘要: //定义父元素function Animal(name,kg){ this.name = name; this.kg = kg; }; Animal.prototype.say = function(){ alert('大家好-',this.name); } //子元素 function Dog(t 阅读全文
posted @ 2021-01-30 16:36 Jantelope 阅读(37) 评论(0) 推荐(0)