摘要: 单例模式 何为单例模式,就是无论执行多少次函数,都只会生成一个对象哈哈,看一个简单的demo function Instance(name) { this.name = name; } Instance.prototype.fire = function () { console.log(this. 阅读全文
posted @ 2020-03-23 18:39 漠然0408丶 阅读(584) 评论(0) 推荐(1) 编辑