1. Insert the U disk
2. Automatically open a file in the U disk
3. There is no need to consider the list of files in the U disk, it can be implemented in the simplest and most direct way
4. If js is not possible, how can it be achieved?
我想大声告诉你2017-05-19 10:32:40
There are quite a few questions like this, please search more.
http://stackoverflow.com/ques...
After testing, it can be read directly. But there is no way to read it automatically (there will be security issues).
迷茫2017-05-19 10:32:40
js doesn’t work, but node does. Run in the background, check to see if the USB disk is there every once in a while, and operate it if it is. This is the simplest and most crude method.
仅有的幸福2017-05-19 10:32:40
js is ok, but it depends on the environment. It won’t work in the browser anyway