<html> <head> <meta charset="UTF-8"> </head> <body> <p id="avx"></p> <div style="display: none;" id="asc"> 控制界面顯示 </div> </body> <script type="text/javascript"> var t=6; timedMsg(); function timedMsg(){ setTimeout("timedMsg()",2000); document.getElementById("avx").innerHTML="請在"+t+"s後從新獲取"; if(t==0){ t=6; document.getElementById("avx").innerHTML="請從新獲取"; document.getElementById("asc").style.display="block"; } t--; } </script> </html>