-6

I want to parallelly post the data to two pages that operates on data independently. So that no time wastage occur. I can execute them serially but want to post data to both pages simultaneously and execute parallelly. Please suggest me any idea?

4

1 回答 1

0

您可以使用 javascript 发送两个 ajax 请求。

使用 jQuery 会是这样的

$.post('first_page.php', {data: 'Some Data'}, function(response) {
   // process 1st page
});
$.post('second_page.php', {data: 'Some Data'}, function(response) {
   // process 2nd page
});
于 2013-07-11T13:10:09.160 回答