ajax 可以设置同步和异步,你直接把两个Ajax设置为请求就行了,如果怕麻烦,直接用jquery 的$.get , $.post , $.ajax 方法,具体参数根据这3个的方法设置即可, 只是其中的 async:false 需要这样子设置
用$. when 就像这样
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ) .then( myFunc, myFailure );
http://api.jquery.com/jQuery.when/