jsp 弹出提示窗口
说明:需要提示窗口,点确定后在跳转<%request.setCharacterEncoding("gbk");intnum=newInteger(request.getP...
说明:需要提示窗口,点确定后在跳转
<%
request.setCharacterEncoding("gbk");
int num=new Integer(request.getParameter("num"));
if(num >9){
%>
<script type="text/javascript">
<!--
return confirm("确定要删除吗?");
//-->
</script>
<%
response.sendRedirect("MyJsp.jsp");
}else{
%>
<script type="text/javascript">
<!--
alert("失败!");
//-->
</script>
<%
}
%> 展开
<%
request.setCharacterEncoding("gbk");
int num=new Integer(request.getParameter("num"));
if(num >9){
%>
<script type="text/javascript">
<!--
return confirm("确定要删除吗?");
//-->
</script>
<%
response.sendRedirect("MyJsp.jsp");
}else{
%>
<script type="text/javascript">
<!--
alert("失败!");
//-->
</script>
<%
}
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询