EasyUI 文本框回车和普通回车

easyui 回车

$('#Destination_Code').textbox('textbox').bind('keypress', function (e) {
if (e.keyCode == 13) {
}
}

普通回车

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Check Score</title>
<script language="JavaScript">
function ddd(event){
    console.log(event.keyCode);
}
</script>
</head>
<body >
<input id="input1" value="登录" type="text" onkeypress="ddd(event)">
</body>
</html>
a
原文地址:https://www.cnblogs.com/LiuFengH/p/10150176.html