【文件属性】:
文件名称:js-throttle-function
文件大小:1KB
文件格式:ZIP
更新时间:2021-06-13 04:27:34
JavaScript
js-油门功能
限制每秒可以调用回调的次数的函数。
用法
var throttle = require("throttle-function");
throttle(function () {
// Regardless of how often throttle is called
// this function will only be called a maximum
// of one every 500 milliseconds
}, 500)
【文件预览】:
js-throttle-function-master
----index.js(462B)
----package.json(345B)
----README.md(353B)