weimh
Results
3
comments of
weimh
> @weiminghaoo 未能重现此问题,setInterval 是否有特殊逻辑,提供相关复现示例或更详尽的信息。 import { usb } from 'usb' usb.on('attach', (device) => { }) usb.on('detach', (device) => { }) 使用了usb,内部应该是有使用setInterval来监听usb设备的插拔,我的开发环境是mac
> an ES module, set "type": "module" in the package.json or use the .mjs extension. 是的