从Javascript中的XML数据获取任何属性的值
但我有一个例外:从Javascript中的XML数据获取任何属性的值,javascript,html,jquery,xml,Javascript,Html,Jquery,Xml,但我有一个例外: $(…).getAttributeValue不是函数读取属性的jquery方法是.attr,可应用于xml: $(xmlresponse).getAttributeValue('status'); var xml='' +'' +'' +'' console.log($(xml.attr(“status”)) 实际上,getAttributeValue()不是jQuery方法。你在哪里找到的? $(xmlresponse).getAttributeValue('status
$(…).getAttributeValue不是函数读取属性的jquery方法是
.attr
,可应用于xml:
$(xmlresponse).getAttributeValue('status');
var xml=''
+''
+''
+''
console.log($(xml.attr(“status”))
实际上,getAttributeValue()
不是jQuery方法。你在哪里找到的?
$(xmlresponse).getAttributeValue('status');
$(xml).attr("status")