attr ():操作的是HTML文檔節點元素的屬性attribute,也就是name,id,class等. prop():操作的是DOM元素(JS對象)的property屬性(這裡屬性可以理解 ...
確定! 回上一頁