标签: 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文件中获取内容。
$.ajax
答案 0 :(得分:0)
这样的东西?
$.ajax({ url: 'returnXML.php', dataType: 'xml', success: function(data) { //Whatever you want to do with that data. } });