search

Home  >  Q&A  >  body text

java的web项目是否可以与扫描枪交互

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

黄舟黄舟2806 days ago1304

reply all(8)I'll reply

  • 怪我咯

    怪我咯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

    reply
    0
  • ringa_lee

    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

    reply
    0
  • 大家讲道理

    大家讲道理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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 09:19:49

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

    reply
    0
  • 怪我咯

    怪我咯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.

    reply
    0
  • PHP中文网

    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.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:19:49

    Okay, I’ve done it before

    reply
    0
  • 高洛峰

    高洛峰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

    reply
    0
  • Cancelreply