码迷,mamicode.com
首页 > Web开发 > 详细

jquery操作xml

时间:2014-10-31 11:35:16      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:io   ar   on   cti   tt   type   text   jquery   c   

$.ajax({

  url: "a.xml",

  dataType: "xml",

  type: "GET",

  error: function(xml) {alert("error");},

  success: function(xml) {

    $(xml).find("tag").each(function(i) {

      var id = $(this).attr("id");

      var lower = $(this).children("lower").text();

      //......

    });

  }

});

jquery操作xml

标签:io   ar   on   cti   tt   type   text   jquery   c   

原文地址:http://www.cnblogs.com/feilv/p/4064463.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!