java的web项目是否可以与扫描枪交互
黄舟
黄舟 2017-04-18 09:17:49
0
8
1289

想问下,一个b/s的java项目。需要扫码,获取数据,能实现吗?需要什么方法实现。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(8)
刘奇

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

左手右手慢动作

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

大家讲道理

Yes, the scanner is an input device. You can imagine it as a keyboard and take it back to the car

大家讲道理

No, but you can provide an excuse for the scanner to call.

刘奇

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.

洪涛

C/S is just like scanning the QR code on WeChat. I guess the browser doesn't provide this API.

巴扎黑

Okay, I’ve done it before

小葫芦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template