📅  最后修改于: 2022-03-11 15:02:48.242000             🧑  作者: Mango
$("#mySubmit").click(function() {
var formData = $(this).closest('form').serializeArray();
formData.push({ name: this.name, value: this.value });
//now use formData, it includes the submit button
});