返回发现原来的在页面并刷新:
servlet 中:
out.print("<Script>alert(‘Add Success!‘);history.back();location.reload();</Script>‘" );
out.print("<script language=javascript>alert(‘Add Success!‘)</script>") ; out.print("<script language=javascript> history.back() </script> ") ;
时间: 2024-10-15 08:32:57