📅  最后修改于: 2022-03-11 15:01:55.548000             🧑  作者: Mango
$(form).submit(function(e){ // Get the button that was clicked var submit = $(this.id).context.activeElement; // You can get its name like this alert(submit.name) // You can get its atsortingbutes like this too alert($(submit).attr('class')) });