$(this).serialize() — How to add a value?

前端 未结 8 2351
清酒与你
清酒与你 2020-12-02 08:41

currently I have the following:

$.ajax({
    type: \'POST\',
    url: this.action,
    data: $(this).serialize(),
});

This works fine, howe

8条回答
  •  感动是毒
    2020-12-02 09:28

    this better:

    data: [$(this).serialize(),$.param({NonFormValue: NonFormValue})].join('&')
    

提交回复
热议问题