NetBlog主题

JS定时器暂停与开始
Web前端

JS定时器暂停与开始

2374 0

<script type="text/javascript">var setIntervalID;window.onload = function () {document.getElementById(btn1).onclick = function () {setIntervalID = setInterval(function () {document.getElementById(txt1).value++;},1000)};document.getElementBy…