当前位置:

比分即时速递:足球赛场风云变幻,90vs为您提供最快捷的信息!

来源:24直播网
比分即时速递

实时比分

主队 客队 比分 时间

足球动态

<script> // 获取实时比分数据function fetchLiveScores() {fetch('https://90vs.com/api/live-scores').then(response => response.json()).then(data => {// 清空旧数据document.getElementById('live-scores').innerHTML = '';// 填充实时比分数据data.forEach(match => {const row = document.createElement('tr');const homeTeamCell = document.createElement('td');homeTeamCell.innerText = match.homeTeam;const awayTeamCell = document.createElement('td');awayTeamCell.innerText = match.awayTeam;const scoreCell = document.createElement('td');scoreCell.innerText = match.score;const timeCell = document.createElement('td');timeCell.innerText = match.time;row.appendChild(homeTeamCell);row.appendChild(awayTeamCell);row.appendChild(scoreCell);row.appendChild(timeCell);document.getElementById('live-scores').appendChild(row);});}).catch(error => {console.error('无法获取实时比分数据:', error);});}// 定时刷新实时比分数据setInterval(fetchLiveScores, 1000);// 获取足球动态function fetchFootballNews() {fetch('https://90vs.com/api/football-news').then(response => response.json()).then(data => {// 清空旧数据document.getElementById('football-news').innerHTML = '';// 填充足球动态data.forEach(news => {const item = document.createElement('li');item.innerText = news.title;document.getElementById('football-news').appendChild(item);});}).catch(error => {console.error('无法获取足球动态:', error);});}// 定时刷新足球动态setInterval(fetchFootballNews, 10000); </script>