use-barcode:React自定义钩子以从扫描仪读取条形码

时间:2021-04-08 14:51:40
【文件属性】:
文件名称:use-barcode:React自定义钩子以从扫描仪读取条形码
文件大小:41KB
文件格式:ZIP
更新时间:2021-04-08 14:51:40
JavaScript 使用条形码 安装 yarn add use-barcode # or npm install use-barcode 用法 import useBarcode from 'react-barcode' ; useEffect ( ( ) => { if ( barcode ) { // do your own logic } } , [ barcode ] ) ; 上面的useEffect将在扫描页面上的任何位置后执行,除了input , textarea和具有contenteditable属性的任何元素。 有关更多详细信息,请参考 参考
【文件预览】:
use-barcode-main
----.eslintrc.yml(169B)
----example()
--------Demo.js(834B)
----index.js(160B)
----package.json(712B)
----dist()
--------use-barcode.min.js(2KB)
--------use-barcode.js(7KB)
----src()
--------utils.js(435B)
--------index.js(54B)
--------useBarcode.js(1KB)
----.prettierrc.yml(34B)
----.gitignore(12B)
----webpack.config.js(606B)
----README.md(502B)
----yarn.lock(84KB)
----.eslintignore(4B)

网友评论