2
:XML .attributes沒有,看起來像這樣的XML節點工作
爲什麼這個代碼不工作?
xml = $.parseXML(xml);
console.log(xml);
plot = $(xml).find("movie");
aP = plot.attributes
console.log(aP);
我得到未定義的控制檯日誌。 AP
我也嘗試AP = $(圖).attributes
謝謝brotha,你一口氣回答了很多 –