<link href="style.css" rel="stylesheet"/> 实时比分 时间 主队 客队 比分 即将开赛 时间 主队 客队 完赛结果 时间 主队 客队 比分 脚本 (script.js): javascript // 假设以下数据是从服务器获取的 const liveScores = [{time: "2023-03-08 19:30",homeTeam:"皇家马德里",awayTeam: "利物浦",score: "1-0"},{time: "2023-03-08 21:00",homeTeam: "曼城",awayTeam: "拜仁慕尼黑",score: "2-1"} ];const matchSchedule = [{time: "2023-03-09 19:30",homeTeam: "巴塞罗那",awayTeam: "国际米兰"},{time: "2023-03-09 21:00",homeTeam: "巴黎圣日耳曼",awayTeam: "尤文图斯"} ];const matchResults = [{time: "2023-03-07 19:30",homeTeam: "切尔西",awayTeam: "多特蒙德",score: "1-2"},{time: "2023-03-07 21:00",homeTeam: "AC米兰",awayTeam: "热刺",score: "0-3"} ];// 填充实时比分表格 const liveScoresTable = document.getElementById("live-scores-table"); liveScores.forEach(match => {const row = `${match.time}${match.homeTeam}${match.awayTeam}${match.score}`;liveScoresTable.innerHTML += row; });// 填充即将开赛表格 const matchScheduleTable = document.getElementById("match-schedule-table"); matchSchedule.forEach(match => { const row = `${match.time}${match.homeTeam}${match.awayTeam}`;matchScheduleTable.innerHTML += row; });// 填充完赛结果表格 const matchResultsTable = document.getElementById("match-results-table"); matchResults.forEach(match => {const row = `${match.time}${match.homeTeam}${match.awayTeam}${match.score}`;matchResultsTable.innerHTML += row; });