jQuery的屬性,事件及操作

1.屬性操作 1.1 基本屬性操作 $("img").attr("src") 返回文檔中所有圖像的src屬性值 $("img").attr("src","test.jpg") 設置文檔中所有圖像的src屬性值 $("img").removeAttr("src") 將文檔中圖像的src屬性刪除 $("input[type='checkbox'
相關文章
相關標籤/搜索