0
比方說,我有..在JavaScript中,原型,你如何動態地點擊剛剛被點擊的按鈕?
<button id="pm_Update">Save Changes - Stay on this page</button>
然後我點擊它,在那裏,將動態再次單擊該代碼?
謝謝!
比方說,我有..在JavaScript中,原型,你如何動態地點擊剛剛被點擊的按鈕?
<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
}
});
你嘗試過什麼? –