<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>style样式</title></head><body> <h2>操作成功<h2/> <span id="sec">5<span/> <span>秒后回到主页<input type="button" value="返回" onclick="dd()"> </span><!--先编写好网页布局--> <script type="text/javascript"> var secd=5; function lala(){ secd--; document.getElementById("sec").innerHTML=secd; };setInterval("lala()",1000);</script></body></html>
添加回答
举报
0/150
提交
取消