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(){
...
}
}