
clearTimeout该引用。
// in the example above, assign the resultvar timeoutHandle = window.setTimeout(...);// in your click function, call clearTimeoutwindow.clearTimeout(timeoutHandle);// then call setTimeout again to reset the timertimeoutHandle = window.setTimeout(...);
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)