怎么做使用jquery ajax

时间:2011-04-10 11:18:38

标签: php jquery ajax

  

可能重复:
  how to read files saved on the server using php and make a call to that php page using ajax to display the list of files

如何使用第一个PHP从存储在服务器上的XML文件中获取内容,获取文件列表,然后使用$.ajax GET方法从该XML文件中获取内容。

1 个答案:

答案 0 :(得分:0)

这样的东西?

$.ajax({
  url: 'returnXML.php',
  dataType: 'xml',
  success: function(data) {
  //Whatever you want to do with that data.
  }
});