NBA直播是24直播网为NBA球迷准备的NBA看球服务,我们虔诚为您提供NBA直播,NBA免费直播在线直播,NBA视频直播,NBA直播无插件服务,让您能在24直播网第一时间观看到任何一场NBA直播,无论是湖人快船或是开拓者的比赛,我们都将实时为您提供。
当前位置:
forEach(item => { item.addEventListener('click', function() { const url = this.getAttribute('title'); ECMSSetCookie('vlu', url); const CTM = Math.floor(new Date().getTime()/1000); const API_HOST = window.location.host; const API_PATH = url; const REFERRER = window.location.href; const UA = navigator.userAgent; const API_ROUTE_TJ = '//' + API_HOST +'/statistic/tj'; fetch(API_ROUTE_TJ, { method: 'POST', headers: { 'Accept': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ 'h': API_HOST, 'r': REFERRER, 't': CTM, 'p': API_PATH, 'u': UA, 'e': 1, 'l': 2 }) }) .then(response => { if (response.ok) { return response.json().catch(() => response.text()); } else { throw new Error("请求失败,状态码: " + response.status); } }) .then(data => {console.log('success'); }) .catch(err => { console.error('请求发生错误:', err); }); if (url) { if(url.indexOf('statistic/zhiboclick?d=')>0) { var xhr = new XMLHttpRequest(); xhr.open('GET', '/statistic/zhiboclick', true); xhr.responseType = 'json'; xhr.send(); } window.open(url, '_blank'); } }); });