📌  相关文章
📜  表单序列化提交按钮 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:48.242000             🧑  作者: Mango

代码示例1
$("#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
});