js实现面向对象

上传:WUYUNLUWEI 浏览: 24 推荐: 0 文件:JS 大小:1.79KB 上传时间:2020-09-11 13:50:01 版权申诉
var Animal=function(){ alert("Animal name is "+this.name); }.body({ name:"generic animal", sing:function(){ alert(this.name+" sing"); } }); var Chiken=function(){ Chiken.super.constructor.apply(this); alert("Chiken name is "+this.name); }.body({ name:"chiken", sing:function(sth){ alert(
上传资源
用户评论