2
:XML .attributes没有,看起来像这样的XML节点工作
为什么这个代码不工作?
xml = $.parseXML(xml);
console.log(xml);
plot = $(xml).find("movie");
aP = plot.attributes
console.log(aP);
我得到未定义的控制台日志。 AP
我也尝试AP = $(图).attributes
谢谢brotha,你一口气回答了很多 –