怪我咯2017-04-18 09:19:49
1. The browser cannot interact with local hardware
2. Develop an interactive interface for this scanner, and then send the obtained data to a background service, which then pushes it to your web display
3. Since you do it for you The web application adds a local resource interaction, then you can encapsulate your web into your native application, such as electron
ringa_lee2017-04-18 09:19:49
I don’t know much about scanning and grabbing. I have used an ID card reader before. It directly inputs the read data in the current focus and then presses Enter, so the events of the control can be captured for processing
大家讲道理2017-04-18 09:19:49
Yes, the scanner is an input device. You can imagine it as a keyboard and take it back to the car
怪我咯2017-04-18 09:19:49
Yes, I have used the freshman admission system (B/S system) of our Academic Affairs Network before. When new students enroll, they use a scanner to scan the barcode on the notification letter to obtain student number and other information, and then trigger inquiries, verification and other operations.
@chinasky is right, it is an ordinary input device. Input the read information to the current focus of the page. After the input is completed, press Enter to trigger the interaction. It can be implemented directly using the B/S architecture, and there is no need for any API provided by the browser.
PHP中文网2017-04-18 09:19:49
C/S is just like scanning the QR code on WeChat. I guess the browser doesn't provide this API.
高洛峰2017-04-18 09:19:49
It’s ok. I’ve seen a drug entry system. Just scan the code with the scanner and automatically enter the basic information. But this kind of C/S is more common