脚 本 之 家 www.jb51.net
页面导航:  不限条件-->JavaScript使用prototype定义对象类型
本地搜索:
From: JavaEye.com prototype提供了一套JavaScript面向对象基础设施,我们可以使用它来进行面向对象编程,定义对象类型方式如下: var Person = Class.create(); Person.prototype = {  initialize : function(name, age) {  this.name = name;  this.age&...
http://www.jb51.net//article/6805.htm
From:JavaEye.comprototype提供了一套JavaScript面向对象基础设施,我们可以使用它来进行面向对象编程,定义对象类型方式如下:varPerson=Class.create();Person.prototype={ initialize:function(name,age){ this.name=name; this.age=age; }, toString:function(){ document.writeln("[name]:"+this.name+"<br>"+"[age]:"+this....
http://www.jb51.net//article/5485.htm
共有:2/10,当前1/1页  [首页] [上一页] 1 [下一页] [尾页] 转到: