ES6 单例模式(singleton) let instanceexport default class SingleIns{constructor() {if ( instance )return instanceinstance = this} javascript 2024-10-13 37 点赞 0 评论 56 浏览