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

@@ -9,3 +9,10 @@ const scores = [88, 92, 95];
// 1. 解构出 name、stage
// 2. 解构出前两个分数
// 3. 用模板字符串把信息写入 #output
const { name, stage } = student
const [a, b] = scores
const output = document.getElementById("output")
output.innerHTML = `
a = ${a}
b = ${b}
`