原创 定時器

1.定時器的基本使用   開啓:timer = setInterval(函數,時間)  //無限次數的執行               setTimeout(函數,時間)  //只執行一次   關閉:clearInterval(timer