# SureThrottle **Repository Path**: Sure0212/sure-throttle ## Basic Information - **Project Name**: SureThrottle - **Description**: vue3封装的节流自定义指令 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-07 - **Last Updated**: 2024-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 如何引用 1.下载directives文件夹里的sureThrottle.js文件 2.放在你项目的目录中 路径记好 3.在main.js中 ``` import sureThrottle from '文件存放的路径' const app = createApp(App); app.use(sureThrottle) ``` ## 使用方法 ![输入图片说明](%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20240406201437.jpg) 1.你首先需要在你的组件里声明一个函数 比如鼠标移动事件触发的函数 2.在触发事件的元素上 ```