<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>同步显示时间</title><scriptsrc="../../js/jquery-3.6.0.min.js"></script></head><body><h1id="h"></h1><script>$("#h").css({"background-color":"gray","font-size":"50px","color":"pink","text-align":"center"});var date;functionflush(){
date =newDate().toLocaleString();$("#h").text(date);}setInterval("flush();",100);</script></body></html>