get(0).tagName

$(this).get(0).tagName

[0].tagName[0]

$(this)[0].tagName

context.nodeName

$(this).context.nodeName

function getXMLData() {
    $.ajax({
        url : 'data.xml',
        type : 'GET',
        dataType : 'xml',
        timeout : 1000,
        error : function (xml) {
            alert('Error loading XML document' + xml);
        },
        success : function (xml) {
            $("data", xml).children().each(function () {
                alert($(this).context.nodeName);
            });
        }
    });
}

 转自:http://www.cnblogs.com/zhangfei/archive/2013/01/22/2871177.html

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2021-10-26
  • 2021-12-31
  • 2021-10-16
猜你喜欢
  • 2021-06-18
  • 2022-12-23
  • 2021-12-28
  • 2022-02-26
  • 2021-10-18
  • 2021-07-16
相关资源
相似解决方案