📅  最后修改于: 2022-03-11 15:01:24.804000             🧑  作者: Mango
function BarcodeScanner (props) {
const [barcodeInputValue, updateBarcodeInputValue] = useState('')
function barcodeAutoFocus() {
document.getElementById("SearchbyScanning").focus()
}
function onChangeBarcode(event) {
updateBarcodeInputValue(event.target.value)
}
function onKeyPressBarcode(event) {
if (event.keyCode === 13) {
updateBarcodeInputValue(event.target.value)
}
}
return () {
}
}