我在 Electron 下运行的函数中有一些非常基本的测试代码:
function test {
log.info('this shows')
let r = async() => { log.info ('will never show')}
// or (async() => {log.info('will not show')})
}
为什么日志行从不显示在日志中?这让我疯狂。
最佳答案
您已将r
分配给一个函数,但从未使用r()
对其进行调用。
关于node.js - Electron Node 异步调用未调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63779917/