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

 

posted on 2018-12-20 16:28  Aaron_Net  阅读(872)  评论(0编辑  收藏  举报