Class - Prototype JavaScript 框架
From Xunxin Prototype API
Class
Prototype 提供的基于 OOP 的类对象。
目前,类的继承是通过 Object.extend 实现的。
方法
addMethods
1.6.0
addMethods(methods)
增加新的方法到已有的类中。
create
create([superclass][, methods...]) -> Class
创建一个类。
From Xunxin Prototype API
Prototype 提供的基于 OOP 的类对象。
目前,类的继承是通过 Object.extend 实现的。
addMethods(methods)
增加新的方法到已有的类中。
create([superclass][, methods...]) -> Class
创建一个类。