jQuery的attr()與prop()

文章轉自:https://www.cnblogs.com/dolphinX/p/3348582.htmljavascript jQuery1.6中新添加了一個prop方法,看起來和用起來都和attr方法同樣,這兩個方法有什麼區別呢?這要從HTMl 的attribute與property區別提及,attr與prop正是這兩個東西的縮寫。html attribute與property attribut
相關文章
相關標籤/搜索