Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: Javascript 中的 HTTP GET 请求?
我有一个包含 XML 树的 url。我想读取该 url 内容,将其保存到变量中,提取 XML 树值,并将其绘制在表格中。
在 jQuery 中使用 AJAX 查询:
$.ajax({ url: url, dataType: 'xml', success: function(data) { // Data is your xml content which you can work with } });