Mainpage
server와의 통신
function loginmove() {
fetch("/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
pk_user_id: document.getElementById("username").value,
pk_user_pw: document.getElementById("password").value,
}),
}).then((response => response.json()))
.then(json => {
if (json['status'] == 400) {
비밀번호가 틀렸을 때
}else if (json['status'] == 500) {
서버 에러가 발생했을 때
}else if (json['status'] == 200) {
사용자의 lms 데이터를 받아왔을 때
}
}Last updated
