Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有..
<button id="pm_Update">Save Changes - Stay on this page</button>
然后我点击它,有没有代码会再次动态点击它?
谢谢!
这是一个示例(使用 jQuery)在特定时间后单击按钮..
$(function () { $("#pm_Update").click(function (e) { // DO-SOMETHING //click it after specifed period of time window.setTimeout(function () { $("#pm_Update").click(); }, 1000); //timeout in milliseconds } });