Commit a7b6e457 by agan

回退bug

parent 485644f0
Showing with 8 additions and 0 deletions
......@@ -26,6 +26,13 @@
<a href="http://www.baidu.com" class="operateBtn" title="返回首页">返回首页</a>
</div>
</div>
<script language="javascript">
//防止页面后退
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
</script>
<script>
var userIp = window.location.search.split('?ip=')[1]
if(userIp){
......
......@@ -20,6 +20,7 @@ function viewPage(callback) {
$.ajax({
url: _url + '/info/updatePvUv',
async: false,
data: {
cid: icid,
targetCid: icid,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment