Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nw.js如何使用node-usb #2

Open
jsOcean opened this issue Aug 28, 2019 · 0 comments
Open

nw.js如何使用node-usb #2

jsOcean opened this issue Aug 28, 2019 · 0 comments

Comments

@jsOcean
Copy link

jsOcean commented Aug 28, 2019

我在本地装了npm install usb,写了一个a.js

var usb = require('usb');

usb.on('attach', function(device) {

console.log("1"+device); });

usb.on('detach', function(device) { console.log("2"+device); });

然后用命令node a.js ,可以运行,拔插是可以检测到的,但是我想用 nw.js(node+webkkit)

然后拔插返回的信息,我想在html页面上展示出来,怎么做,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant