2
在AUI之間的區別,就是AlloyUI - node.attr( 「ID」)和node.getAttribute( 「ID」)
node.attr("id")
和
的區別node.getAttribute("id")
其中節點是Node類型的對象。
getAttribute的文檔說「允許在DOM節點上獲取屬性,在某些情況下正常化」。但我不明白什麼是標準化手段,在什麼情況下適用。
感謝, 阿蘭