else语句是登录的判断过程,主要代码如下:alert("用户名不能为空!");window.location.href
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/15 14:22:24
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";
前面三个判断都是对的,但最后两个,无论密码输入正确与否,都显示“密码输入错误”,这是怎么回事?
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()是什么意思