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

<template>
    <a-input v-model.trim="value" placeholder="请输入" clearable @change="change"></a-input>
</template>
  
this.change = this.$lodash.debounce(this.check, 500) //防抖
 
methods: {
    check(){
        ...
   }
 }
 
posted @ 2023-05-24 15:47  人恒过  阅读(132)  评论(0)    收藏  举报