Barcode scanner for html5 and jquery application

前端 未结 3 1418
悲&欢浪女
悲&欢浪女 2021-01-30 10:05

I am using Jquery and html for a project. It is a static web application. I need a jquery that reads barcode scanner\'s barcode from products. The barcode need to be scanned wit

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 10:28

    I found this quite old but pretty good post which was working fine with my hardware.

    I have implemented it into a jquery plugin: jquery-code-scanner, you can try it here to see if it works with your code reader.

    $ bower install jquery-code-scanner
    
    
    
    
    
    
    $('#code-scan').codeScanner();
    

    Don't hesitate to create issues or PRs on the project.

提交回复
热议问题