足球五大联赛比分及时播报,让你不错过精彩瞬间!

来源:24直播网
让你不错过精彩瞬间!

欢迎来到足球五大联赛比分及时播报中心,在这里您可以及时了解五大联赛的最新比分信息,不错过任何精彩瞬间!

比赛日程

日期 时间 主队 客队

比赛比分

日期 时间 主队 比分 客队
<script> // 模拟数据const matchScheduleData = [{date: '2023-03-04',time: '19:30',homeTeam: '曼城',awayTeam: '伯恩利',},{date: '2023-03-05',time: '17:00', homeTeam: '利物浦',awayTeam: '曼联',},{date: '2023-03-05',time: '19:30',homeTeam: '切尔西',awayTeam: '热刺',},];const matchScoresData = [{date: '2023-03-04',time: '19:30',homeTeam: '曼城',score: '3:0',awayTeam: '伯恩利',},{date: '2023-03-05',time: '17:00',homeTeam: '利物浦',score: '2:1',awayTeam: '曼联',},{date: '2023-03-05',time: '19:30',homeTeam: '切尔西',score: '1:1',awayTeam: '热刺',},];// 填充比赛日程数据const matchScheduleElement = document.getElementById('match-schedule');matchScheduleData.forEach((match) => {const row = document.createElement('tr');const dateCell = document.createElement('td');dateCell.textContent = match.date;const timeCell = document.createElement('td');timeCell.textContent = match.time;const homeTeamCell = document.createElement('td');homeTeamCell.textContent = match.homeTeam;const awayTeamCell = document.createElement('td');awayTeamCell.textContent = match.awayTeam;row.appendChild(dateCell);row.appendChild(timeCell);row.appendChild(homeTeamCell);row.appendChild(awayTeamCell);matchScheduleElement.appendChild(row);});// 填充比赛比分数据const matchScoresElement = document.getElementById('match-scores');matchScoresData.forEach((match) => {const row = document.createElement('tr');const dateCell = document.createElement('td');dateCell.textContent = match.date;const timeCell = document.createElement('td');timeCell.textContent = match.time;const homeTeamCell = document.createElement('td');homeTeamCell.textContent = match.homeTeam;const scoreCell = document.createElement('td');scoreCell.textContent = match.score;const awayTeamCell = document.createElement('td');awayTeamCell.textContent = match.awayTeam;row.appendChild(dateCell);row.appendChild(timeCell);row.appendChild(homeTeamCell);row.appendChild(scoreCell);row.appendChild(awayTeamCell);matchScoresElement.appendChild(row);}); </script>