使用jQuery解析xml文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用jQuery解析xml文件相关的知识,希望对你有一定的参考价值。

  1. function parseXml(xml) {
  2. //find every Tutorial and print the author
  3. $(xml).find("Tutorial").each(function()
  4. {
  5. $("#output").append($(this).attr("author") + "");
  6. });
  7. }

以上是关于使用jQuery解析xml文件的主要内容,如果未能解决你的问题,请参考以下文章