input 回车 事件响应

 input 回车 事件响应

$(document).ready(function()
{
$(document).keypress(function(e){
var curKey = e.which;
if(curKey == 13)
{
pushButton();
}
});
});

  

  

原文地址:https://www.cnblogs.com/wangkangluo1/p/2127154.html