kenscut
2021-06-13 13:39
<script type="text/javascript">
var attime;
function clock(){
var time=new Date();
var myarr=time.split(" ");
attime=myarr[4];
document.getElementById("clock").value = attime;
}
setInterval(clock,1000);
</script>
good!
JavaScript进阶篇
468194 学习 · 21891 问题
相似问题