Appearance
import { throttle } from "grantlibs"; 或; const { throttle } = require("grantlibs");
debounce(fn: () => {}, wait: number): Function
function: 执行函数
const test = throttle(() => { console.log("hello world"); }, 3000); test(); // 3s 后 输出 hello world