摘要: window.setInterval(function(){ var refreshHours = new Date().getHours(); var refreshMin = new Date().getMinutes(); var refreshSec = new Date().getSeco 阅读全文
posted @ 2022-07-14 10:29 CrossPython 阅读(132) 评论(0) 推荐(0)
摘要: 1. var ajax = { abort: function () {} //定义一个空的方法, 是为了下面ajax.abort()不报错 }; setInterval(function () { ajax.abort(); //每次提交前, 先放弃上一次ajax的提交, 这样就不会同时有多个aj 阅读全文
posted @ 2022-07-14 09:53 CrossPython 阅读(414) 评论(0) 推荐(0)
摘要: window.onerror=function(){ window.location.reload(true); } 阅读全文
posted @ 2022-07-14 09:34 CrossPython 阅读(28) 评论(0) 推荐(0)