const liveMatchesTableBody = liveMatchesTable.getElementsByTagName("tbody")[0];let liveMatchesData = [{league: "英格兰超级联赛",homeTeam: "曼城",score: "2-0",awayTeam: "利物浦",time: "19:00"},{league: "西班牙甲级联赛",homeTeam: "巴塞罗那",score: "1-1",awayTeam: "皇家马德里",time: "21:00"}];for (let i = 0; i < liveMatchesData.length; i++) {const liveMatch = liveMatchesData[i];// 创建一行const row = liveMatchesTableBody.insertRow();// 创建单元格const leagueCell = row.insertCell();const homeTeamCell = row.insertCell();const scoreCell = row.insertCell();const awayTeamCell = row.insertCell();const timeCell = row.insertCell();// 填充单元格leagueCell.innerHTML = liveMatch.league;homeTeamCell.innerHTML = liveMatch.homeTeam;scoreCell.innerHTML = liveMatch.score;awayTeamCell.innerHTML = liveMatch.awayTeam;timeCell.innerHTML = liveMatch.time;// 添加 "live-match" 类来表示实时比赛row.classList.add("live-match");}time: "星期日 17:00"}];for (let i = 0; i < upcomingMatchesData.length; i++) {const upcomingMatch = upcomingMatchesData[i];// 创建一行const row = upcomingMatchesTableBody.insertRow();// 创建单元格const leagueCell = row.insertCell();const homeTeamCell = row.insertCell();const scoreCell = row.insertCell();const awayTeamCell = row.insertCell();const timeCell = row.insertCell();// 填充单元格leagueCell.innerHTML = upcomingMatch.league;homeTeamCell.innerHTML = upcomingMatch.homeTeam;scoreCell.innerHTML = upcomingMatch.score;awayTeamCell.innerHTML = upcomingMatch.awayTeam;timeCell.innerHTML = upcomingMatch.time;// 添加 "finished-match" 类来表示已结束的比赛row.classList.add("finished-match");}