Spaces:
Build error

File size: 315 Bytes
727862c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function go() {
  fetch("/tao_baogia_tu_pyc", {
    method: "POST",
    body: new FormData(/*...*/)
  })
  .then(res => res.json())
  .then(data => {
    document.getElementById("status").innerText = data.message || "Xong!";
  })
  .catch(err => {
    document.getElementById("status").innerText = "Lỗi";
  });
}