<p class="time">
<span id="time" class="red">3</span>s后自动跳转
</p>
<script language="javascript" type="text/javascript">
var i = 3;
var intervalid;
intervalid = setInterval("back()", 1000);
function back() {
if (i == 0) {
window.location.href = "./";
clearInterval(intervalid);
}
document.getElementById("time").innerHTML = i;
i--;
}
</script>
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询