@pengzhanbo/utils - v3.5.0
    Preparing search index...

    Interface DebounceOptions

    Debounce Options

    interface DebounceOptions {
        atBegin?: boolean;
    }
    Index

    Properties

    Properties

    atBegin?: boolean

    If atBegin is false or unspecified, callback will only be executed delay milliseconds after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call. (After the throttled-function has not been called for delay milliseconds, the internal counter is reset).

    如果atBegin为false或未指定,回调函数仅在最后一次防抖函数调用后的delay毫秒执行。 如果atBegin为true,回调函数仅在第一次防抖函数调用时执行。 (在节流函数未被调用delay毫秒后,内部计数器将被重置)。