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

@@ -1,3 +1,7 @@
// 任务:
// 1. 从 ./course-data.js 导入 courses 和 formatCourse
// 2. 把格式化后的结果写入 #output
import { courses, formatCourse } from "./course-data.js"
const a = courses.map(item => formatCourse(item))
const output = document.getElementById("output")
output.textContent = a