how to implement the function anti-shake at this time when the ajax request event is triggered when input input
searchInput(e){
this.setState({
searchContent:e.target.value
})
fetch(`/api/book/auto-complete?query=${e.target.value}`)
.then(res=>res.json())
.then(res=>{
console.log(res);
this.setState({
completionArr:res.keywords
})
})
}