Created
July 27, 2020 00:53
-
-
Save yushulx/f1d1085f3ef6cd2e400972476f907baf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | |
<script> | |
let scanner = null; | |
(async()=>{ | |
scanner = await Dynamsoft.BarcodeScanner.createInstance(); | |
scanner.onFrameRead = results => {console.log(results);}; | |
scanner.onUnduplicatedRead = (txt, result) => {alert(txt);}; | |
await scanner.show(); | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment