實時比分 主隊 比分 客隊 最新賽程 日期 時間 主隊 客隊 <script> // 獲取實時比分數(shù)據(jù)并填充fetch('live_scores_api_endpoint').then(response => response.json()).then(data => {let liveScoresTable = document.getElementById('live_scores');let tbody = liveScoresTable.getElementsByTagName('tbody')[0];for (let i = 0; i < data.length; i++) {let row = tbody.insertRow();let cell1 = row.insertCell();let cell2 = row.insertCell();let cell3 = row.insertCell();cell1.innerHTML = data[i].home_team;cell2.innerHTML = data[i].score;cell3.innerHTML = data[i].away_team;}});// 獲取最新賽程數(shù)據(jù)并填充fetch('match_schedule_api_endpoint') .then(response => response.json()).then(data => {let matchScheduleTable = document.getElementById('match_schedule');let tbody = matchScheduleTable.getElementsByTagName('tbody')[0];for (let i = 0; i < data.length; i++) {let row = tbody.insertRow();let cell1 = row.insertCell();let cell2 = row.insertCell();let cell3 = row.insertCell();let cell4 = row.insertCell();cell1.innerHTML = data[i].date;cell2.innerHTML = data[i].time;cell3.innerHTML = data[i].home_team;cell4.innerHTML = data[i].away_team;}}); </script>