Get the App
SLTechnology News&Howtos  ›  Development  › 

How to obtain USB Code scanning Gun data by js

Shulou Source: shulou.com Published: 2022-06-03 09:13:28 11月14日 Update

This article mainly introduces js how to obtain USB code scanning gun data, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

The details are as follows

Directly on the code, this method avoids missing acronyms, string garbled and other problems, very easy to use, record it

The middle Ajax can directly call the login function to realize automatic login.

Note: the input box needs to get focus, which is necessary. Secondly, in order to prevent enter from triggering manual login, you need to add the operation "nkeypress=" if (event.keyCode==13) return false; ". When you enter, the focus of the input box will not be lost unless you manually switch focus, or call focus (); method.

Account number

Tags: Article focus missing first word login data code manual method input garbled event value interest content function at the same time character string time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Tech Info OPPO Reno Huawei Redmi