1、下载lodash npm i lodash 2、按需加载debounce import { debounce } from 'lodash' 3、具体使用(搜索栏输入文本,停顿200毫秒后,才发送搜索数据请求)