onSearch = val= > {
    console.log(val)
    this.setState({
      searchAppCode: val,
      page: 1.pubConfNameList: []},() = >{
    // The requested function
      this.getPubConfInfo()
    })
  };

 debounce = (fun, delay) = > {
  let timer / / timer
  
  return  (args) = > {
    if (timer) {
      clearTimeout(timer)
    }
    timer = setTimeout(() = > { 
       fun(args)
    }, delay)
  }
}
 // Call the method
   onSearch = { this.debounce(this.onSearch, 2000)}Copy the code