$(document).keyup(function(event) { if(event.keyCode==13) { $('btnSubmit').trigger("click"); } }); 转载于:https://www.cnblogs.com/jake-ge/p/3987783.html