Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在同一行发布 1 个表单和 1 个其他值编码?
谢谢。
$.ajax({ type: "POST", url: "...", data: $('.form').serialize(), & id = 10, // not work success: .... });
$.ajax({ type: "POST", url: "...", data: $('.form').serialize()+'&id = 10', success: .... });
您也可以单独发送该值。
$.ajax({ type: "POST", url: "...", data: {form : $('.form').serialize(),id: '10'}, success: .... });