input 响应回车事件

转自: http://blog.163.com/ppy2790@126/blog/static/1032422412012111194219568/
$(document).ready(function()
{
$(document).keypress(function(e){
var curKey = e.which;
if(curKey == 13)
{
pushButton();
}
});
});

你可能感兴趣的:(input 响应回车事件)