前端checkbox實現全選,獲取選中自定義屬性的值

**記個筆記,方便本身之後copy** ## body代碼 ```html //操做按鈕 <a οnclick="check1()"> </a> //表頭 <input type="checkbox" id="awesome" name="ck" οnclick="selectAll()"/> //循環顯示數據 uuid是自定義的屬性 onclick是選中事件 value是值 name是js裏面須
相關文章
相關標籤/搜索