📜  添加参数以序列化 javascript 代码示例

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

代码示例1
var data = $(this).serializeArray(); // convert form to array
data.push({name: "NonFormValue", value: NonFormValue});
$.ajax({
    type: 'POST',
    url: this.action,
    data: $.param(data),
});