问题描述
解决方案
那要看到你的代码才知道
解决方案二:
其他代码呢。。不一定是这句报错吧。。reload会刷新页面,可能你其他代码还在执行导致报这个错误
解决方案三:
你确定是 window.location.reload();
导致的?
解决方案四:
The reload() method in IE is actually a post method and IE is showing this popup to avoid loss or resend of the information to the server.
Your Modified Code:
$('.closeccmbtn').on('click' function (event) { $this.find('[id$=""hdnloaded""]').val('false'); event.preventDefault(); //document.location.reload(true); window.location = window.location; });
Additional Details
When a page is loaded using POST request and you try to reload the page using location.reload(true); the browser needs to send another POST request to the server and this may cause problems as POST is supposed to change state on the server. Therefore the browser needs confirmation from the user. To solve this problem we usually use POST-REDIRECT-GET pattern.
Source URL
http://stackoverflow.com/questions/17723944/to-display-the-webpage-again-internet-explorer-needs-to-resend
解决方案五:
这一句应该没问题吧。