(blur)="keySearch($event)" ,鼠标点击其他地方触发
keySearch(e): void {
var dom = $(e.target);
var key =dom.attr('name');
//var days = this.setData.member_card_notice_day.val;
//key值去匹配对应的天数
var days = $(`#${key}`).val();
let that = this;
this.searchTimer && clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
that.setInput(key,days);
}, 500);
}
(keyup)="keySearch($event)",输入框完成后触发
keySearch(e): void {
var dom = $(e.target);
var key =dom.attr('name');
//var days = this.setData.member_card_notice_day.val;
//key值去匹配对应的天数
var days = $(`#${key}`).val();
let that = this;
this.searchTimer && clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
that.setInput(key,days);
}, 500);
}