Spaces:
Build error

hoaly / static /script.js
doluong6's picture
Create script.js
727862c verified
Raw History Blame Contribute Delete
315 Bytes
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";
});
}