
<!DOCTYPE html> 功能實現(xiàn):右鍵菜單 *{ margin: 0; paddi...
百度 百度一下 /* e.preventDefault() 比如:阻止超鏈接跳轉,阻止右鍵點擊事...
<!DOCTYPE html> 拖動框效果 *{ margin: 0; padding: ...
全選 北京 上海 廣州 深圳 // 獲取全選復選框 let ckAll = docu...
<!DOCTYPE html> 購物車 *{ margin: 0; padding: 0;...
<!DOCTYPE html> 輪播圖練習 <!-- 創(chuàng)建一個圖片標簽 --> //定義一個圖片數(shù)組 ...
顯示圖片 更換圖片title 給圖片添加address屬性 刪除圖片 //獲取圖片標簽 le...
一、BOM&DOM 1. BOM BOM 是瀏覽器對象模型,就可以理解成是當前瀏覽器打開的窗口 window對象 就是 BOM 通過window...
// 定義一個寵物類 class Pet{ constructor(name, type, gender, heal...