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


本文转载:CSDN博客