零碎完成了版本免费素材下载 JS.Class

资源魔 49 0
James Coglan没有久前更新了JS.Class,公布了 JS.Class 2.1版本,应用JavaScript完成了Ruby的工具零碎。
var Event = new JS.Class({
include: JS.Observable,

fire: function(data) {
this.notifyObservers('fire', data);
}
});
JS.Class is designed to make JavaScript behave like Ruby in terms of its OOP structures. To this end, it provides the following features:

Classes and modules with Ruby-compatible inheritance
Subclassing and mixins
Late-binding arguments-optional super calls to parent classes and mixins
Singleton methods and eigenclasses
included, extended and inherited hooks
Method binding
Ports of various standard Ruby modules, including Enumerable, Hash, Set, Observable, Comparable, Forwardable
Its inheritance system supports late-bound super() calls to parent classes and modules, including calls from singleton methods. It has been designed to mimick Ruby as closely as possible, so if you know Ruby you should feel right at home.

标签: 列表拖动 JS.Class

抱歉,评论功能暂时关闭!