$("#modal").keydown(function(e){ var e = e || event, keycode = e.which || e.keyCode; if (keycode==13) { $(".btn-primary").trigger("click"); } });
时间: 2024-10-13 07:45:28
$("#modal").keydown(function(e){ var e = e || event, keycode = e.which || e.keyCode; if (keycode==13) { $(".btn-primary").trigger("click"); } });