使用setInterval和clearInterval启动和停止计时器。

timer

JavaScript
语言:
CSS
语言:
HTML
导入代码模板: