摘要: const registry = new FinalizationRegistry(v=> {console.log('v >', v)}) let o = {} registry.register(o, 'i am o') o = null gc() // v > i am o 这段代码在node 阅读全文
posted @ 2021-04-07 09:47 nextYearToday 阅读(516) 评论(0) 推荐(0)