摘要: //指定单体命名空间 const Ext = {}; //执行函数的结果返回给Ext.base Ext.base=(function () { let singleton; //初始化函数 function init() { //私有成员变量 let a1 = "a1"; let a2 = "a2"; ... 阅读全文
posted @ 2019-03-05 22:50 gluawwa 阅读(151) 评论(0) 推荐(0) 编辑
摘要: //声明接口类,用于实例化接口 function Interface(name,methods) { this.name = name; let functions = []; //方法名为字符串类型 methods.forEach(method=>{ if(typeof method !== "string"){ thro... 阅读全文
posted @ 2019-03-05 20:25 gluawwa 阅读(232) 评论(0) 推荐(0) 编辑