ajax投稿のjqueryを使用して、シリアル化された日付を配列とマージするにはどうすればよいですか?
例えば、
var array = { name: "John", time: "2pm" };
$.post( "page.php", $("form").serialize() + array);
私はこれを得る、
Array
(
[url] => another test
[page_id] => 140
[method] => update[object Object]
)
それらをマージして、これを以下の結果として取得するにはどうすればよいですか?
Array
(
[url] => another test
[page_id] => 140
[method] => update
[name] => John
[time] => 2pm
)