标签: javascript html security dom
我在php / html页面的底部具有以下脚本,以阻止用户仅通过刷新页面即可重新提交已经提交的表单。这是一种安全的方法吗?可以。
<script> if ( window.history.replaceState ) { window.history.replaceState( null, null, window.location.href ); } </script>