1. 首页
  2. 安全技术
  3. 系统安全
  4. js实现面向对象

js实现面向对象

上传者: 2020-09-11 13:50:01上传 JS文件 1.79KB 热度 29次
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(
下载地址
用户评论