兩個 <form> 連續 submit(),只有第二個生效,因瀏覽器同一窗口只能處理一個導航請求。

<form action="url1" target="_blank">...</form>
<form action="url2" target="_blank">...</form>
$('#form1, #form2').each(function() {
$.post(this.action, $(this).serialize(), function(res) {
console.log('提交成功', res);
});
});