节流函数
//节流函数
throttle(val) {
//保持this的指向始终指向vue实例
var that = this;
clearTimeout(this.timeout); // 每当用户输入的时候把前一个 setTimeout clear 掉
this.timeout = setTimeout(() => {
that.serchZZJG(val);
}, 800);
},
未闻花名

浙公网安备 33010602011771号