Nenhum botão de pesquisa para acelerar a pesquisa

onChangeVal(e){
    
    
	this.searchVal = e
		//防抖操作
		if(this.timer){
    
    
		  clearTimeout(this.data.timer);
		  this.timer = null;
		}
		this.timer = setTimeout(() => {
    
    
			// 需要执行的方法
		}, 600);
}

Acho que você gosta

Origin blog.csdn.net/weixin_38566069/article/details/130273308
Recomendado
Clasificación