javascript 觸發器

<script type="text/javascript">
function time_logs() {
        var time = new Date();
        var hour = time.getHours();
        var minute = time.getMinutes();
        var seconds = time.getSeconds();
            
        time = setTimeout("time_logs()",10000);
        alert(hour);
}
</script>
相關文章
相關標籤/搜索