📅  最后修改于: 2022-03-11 14:47:43.133000             🧑  作者: Mango
$('#formid').on('keyup keypress', function(e) {
var keyCode = e.keyCode || e.which;
if (keyCode === 13) {
e.preventDefault();
return false;
}
});