//登陆验证方法
function login(){
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
if (username == "") {
alert("用户名不能为空");
return false;
} else if (password == "") {
alert("密码不能为空");
return false;
}
else {
return true;
}
}
function reRegister(){
window.location.href="http://localhost:8080/loginProject/RegisterServlet?function=reRegister"
}
登陆的js文件
猜你喜欢
转载自blog.csdn.net/qq_36109477/article/details/85089695
今日推荐
周排行