Nukem's Possible Manifestation
    Wondering what’s next for npm?Check out our public roadmap! »

    util-lib-debounce

    1.0.2 • Public • Published

    util-lib-debounce

    Debounce method of encapsulation integration

    Useage

        const utils = require('util-lib-debounce');
    
        function sdjk (e) {
            console.log('触发');
            console.log(11);
        }
    
        let success =  utils.debounce(sdjk, 2000);
        
        // 绑定滚动事件
        window.addEventListener('scroll', success)
    

    Install

    npm i util-lib-debounce

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    3.18 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar