This commit is contained in:
rou
2026-03-23 14:56:04 +08:00
parent 00d3c9e4c6
commit 1071f4db05
27 changed files with 549 additions and 50 deletions

View File

@@ -3,3 +3,11 @@
// 2. 用 querySelector 获取按钮
// 3. 用 querySelectorAll 获取全部卡片
// 4. 在控制台输出标题文字、按钮文字和卡片数量
const a = document.getElementById("page-title")
console.log(a.textContent);
const b = document.querySelector(".start-btn")
console.log(b.textContent);
const c = document.querySelectorAll(".card")
console.log(c.length);