|
发表于 2020-1-13 19:45:01
|
显示全部楼层
winfrom:
private void textBox_BarcodeEntry_KeyUp(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Sapce:
break;
}
}
webfrom:
<script language="javascript">
function document.onkeypress()
{
if (window.event.keyCode == 13)
{
//13是enter键
}
}
</script> |
|