UNPKG

mm_os

Version:

这是超级美眉服务端框架,用于快速构建应用程序。

29 lines (26 loc) 503 B
const Base = require("./base.js"); /** * 公共开发 */ class Com extends Base { constructor() { super(); this.path = "./com".fullname(); // 文件拓展名 this.extension = "com.json"; // 重新加载 this.reload = false; this.init(); } } /** * 公共初始化后 */ Com.prototype.init_after = function() { for (var k in this.dict) { var cs = this.dict[k]; var key = cs.jsonFile.dirname().basename(); this[key] = cs; } } module.exports = Com;