File Reading - How to read U disk files with javascript?
迷茫2017-05-19 10:30:40
0
3
973
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?
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.
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).
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.
js is ok, but it depends on the environment. It won’t work in the browser anyway