问题
在html添加表单后,重新刷新出现确认重新提交表单的提示,一刷新就提示,很不友好
解决
在js中添加window.history.replaceState(null, null, window.location.href);
<script>
$(function () {
//禁用“确认重新提交表单”
window.history.replaceState(null, null, window.location.href);
})
</script>
原文:https://blog.csdn.net/weixin_38211198/article/details/104488303