js:
返回并刷新
<script>alert("恭喜您,操作成功!"); window.location.href=document.referrer; </script>
返回不刷新
<script>alert("恭喜您,操作成功!"); window.history.back(-1); </script>
php
返回并刷新
javascript:window.location.href=document.referrer;
返回不刷新
javascript:window.history.back(-1);
时间: 2024-10-14 15:00:02