How to obtain USB Code scanning Gun data by js
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