摘要: 单例模式 何为单例模式,就是无论执行多少次函数,都只会生成一个对象哈哈,看一个简单的demo function Instance(name) { this.name = name; } Instance.prototype.fire = function () { console.log(this. 阅读全文
posted @ 2020-10-05 20:48 天午正阳 阅读(229) 评论(0) 推荐(0) 编辑