<span class="hour">1</span> <span class="minute">2</span> <span class="second">3</span>
<script>
//获取元素
var hour = document.querySelector(‘.hour‘);
var minute = document.querySelector(‘.minute‘);
var second = document.querySelector(‘.second‘);
</script>