赞
踩
安装local-devices包
npm install local-devices
代码
const find = require('local-devices')find().then(devices=>{ console.log(devices)})