当前位置:

足球竞技比分预测专家,助你天天盈球,稳赚不赔

来源:24直播网
助你天天盈球

输入比赛信息,轻松预测比赛结果,稳赚不赔。

<script> const form = document.getElementById("form");const successMsg = document.getElementById("success-msg");const errorMsg = document.getElementById("error-msg");form.addEventListener("submit", (e) => {e.preventDefault();const match = document.getElementById("match").value;const date = document.getElementById("date").value;const time = document.getElementById("time").value;if (!match || !date || !time) {errorMsg.innerText = "请填写所有必填项。";errorMsg.style.display = "block";return;}const data = {match,date,time,};fetch("api/predict", {method: "POST",headers: {"Content-Type": "application/json",},body: JSON.stringify(data),}).then((res) => res.json()).then((data) => {if (data.success) {successMsg.innerText = `预测结果:${data.prediction}`;successMsg.style.display = "block";} else{errorMsg.innerText = data.error;errorMsg.style.display = "block";}}).catch((err) => {errorMsg.innerText = "预测失败,请稍后再试。";errorMsg.style.display = "block";});}); </script>