Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 440 Bytes

Class.md

File metadata and controls

21 lines (17 loc) · 440 Bytes

Class

提供Class的继承,感谢 @rauschma/class-js

use

require([
    'Class'
], function (Class) {
    // 基于Class扩展一个模块
    var Dialog = Class.extend({
        // 继承的模块必须包含`constructor`构造函数
        constructor: function () {
            Dialog.super.constructor.call(this);
        }
    });

    var app = new Dialog();
});