update
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user