lodash.js初步使用 debounce(防抖)、throttle(节流)

发布时间 2023-05-24 15:53:16作者: 人恒过
<template>
    <a-input v-model.trim="value" placeholder="请输入" clearable @change="change"></a-input>
</template>
  
this.change = this.$lodash.debounce(this.check, 500) //防抖
 
methods: {
    check(){
        ...
   }
 }