else语句是登录的判断过程,主要代码如下:alert("用户名不能为空!");window.location.href
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/07/04 23:37:50
else语句
是登录的判断过程,主要代码如下:
alert("用户名不能为空!");
window.location.href="login.jsp";
alert("请填写密码!");
window.location.href="login.jsp";
alert("用户名不存在!");
window.location.href="login.jsp";
alert("密码错误!请重新输入");
window.location.href="login.jsp";
alert("登录成功!下面转入首页");
window.location.href="main.jsp";
前面三个判断都是对的,但最后两个,无论密码输入正确与否,都显示“密码输入错误”,这是怎么回事?
是登录的判断过程,主要代码如下:
alert("用户名不能为空!");
window.location.href="login.jsp";
alert("请填写密码!");
window.location.href="login.jsp";
alert("用户名不存在!");
window.location.href="login.jsp";
alert("密码错误!请重新输入");
window.location.href="login.jsp";
alert("登录成功!下面转入首页");
window.location.href="main.jsp";
前面三个判断都是对的,但最后两个,无论密码输入正确与否,都显示“密码输入错误”,这是怎么回事?
![else语句是登录的判断过程,主要代码如下:alert(](/uploads/image/z/4092999-15-9.jpg?t=else%E8%AF%AD%E5%8F%A5%E6%98%AF%E7%99%BB%E5%BD%95%E7%9A%84%E5%88%A4%E6%96%AD%E8%BF%87%E7%A8%8B%2C%E4%B8%BB%E8%A6%81%E4%BB%A3%E7%A0%81%E5%A6%82%E4%B8%8B%EF%BC%9Aalert%28%22%E7%94%A8%E6%88%B7%E5%90%8D%E4%B8%8D%E8%83%BD%E4%B8%BA%E7%A9%BA%21%22%29%3Bwindow.location.href)
s.getString(3)==password
改成rs.getString(3).equals(password)
改成rs.getString(3).equals(password)
else语句是登录的判断过程,主要代码如下:alert("用户名不能为空!");window.location.href
window.location.href的用法
window.location.href 和self.location的区别
这是哪里错了,Response.Write "alert('修改成功!');location.href='modi.as
window.top.location.href='/index.jsp';
我要在的href里填写一段由window.location.href获得的地址,怎么编写?
self.location.href的具体用法
js 怎么判断a标签的href为不为空或者 为不为# 给出提示框 转页面
请问在javascript中top.location.href 与 location.href的区别是什么?
top.contents.location.href
document.location.href.substring
document.location.href.toLowerCase()是什么意思