jQuery學習筆記:attr()與prop()的區別

 先看看官方文檔是如何解釋兩者之間功能差異的: attr() Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element. 獲取匹配的元素集合中第一個元素的attribute,或者爲
相關文章
相關標籤/搜索