【发布时间】:2018-05-31 14:00:35
【问题描述】:
我需要自动点击在 320 次后停止。
怎么做?
var = "320";
// i need the loop to stop after 320 times.
var button = document.getElementById("jsonp2");
setInterval(function() {
button.click();
}, 10000);
<input type="button" id="jsonp2" href="javascript:void(0)" onclick="javascript:alert('button autoclicked');" class="btn refreshListButton" title="Refresh">
【问题讨论】:
标签: javascript