歡迎來到比分足球?qū)崟r更新頁面!在這里,您可以掌握全球足球比賽的最新動態(tài)。我們的數(shù)據(jù)直接從各大聯(lián)賽和杯賽的官方來源獲取,確保為您提供準(zhǔn)確可靠的信息。
<script>
// 動態(tài)加載比賽數(shù)據(jù)function loadMatches() {fetch("api/matches").then(response => response.json()).then(data => {let matches = data.matches;let tableBody = document.querySelector("tbody");matches.forEach(match => {let row = document.createElement("tr");let matchCell = document.createElement("td");let timeCell = document.createElement("td");let homeTeamCell = document.createElement("td");let scoreCell = document.createElement("td");let awayTeamCell = document.createElement("td");matchCell.textContent = match.matchName;timeCell.textContent = match.matchTime;homeTeamCell.textContent = match.homeTeam;scoreCell.textContent = match.homeScore + " - " + match.awayScore;awayTeamCell.textContent = match.awayTeam;row.appendChild(matchCell);row.appendChild(timeCell);row.appendChild(homeTeamCell);row.appendChild(scoreCell);row.appendChild(awayTeamCell);tableBody.appendChild(row);});}).catch(error => {console.log("Error fetching matches:", error);});}loadMatches();
</script>