随笔- 310  文章- 1  评论- 0  阅读- 85655 
06 2022 档案
typescript 单例模式
摘要:class Demo{ private static instance:Demo; public constructor(name:string){ console.log('name:',name) } public static getinstance(){ if(!this.instance) 阅读全文
posted @ 2022-06-07 09:58 boye169 阅读(49) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示