通过 JQuery 将多个文件加载到一个 div .load?

Load multiple files into one div via JQuery .load?

我正在尝试这样做:

$("#Div").click(function(){
  $("#PageContentDiv").load("file.php");
  $("#PageContentDiv").load("another.php");
});

这个问题是第二个加载函数正在替换第一个...

尝试在 .load()complete 回调中使用 $.get().append()

$("#Div").click(function() {
  var page = $("#PageContentDiv");
  page.load("file.php", function() {
    $.get("another.php", function(html) {
      page.append(html);
    });
  });     
});