이러한 상황에서 발생하는 입력에 이벤트를 정의 할 수 있습니까?jquery는 자체 이벤트를 정의합니까?
a) is called on blur of input IF the remaining conditions are true b) if the autocomplete list is visible halt the event until it is closed c) if the autocomplete list closes without an item being selected then the event is fired d) if the autocomplete list closes with an item being selected the event is not fired e) if the reason the blur was caused was because an item in the autocomplete was clicked the event is not fired
여러분도 알다시피 이벤트에는 꽤 많은 것이 있습니다. 실제로 아무것도 선택하지 않고도 자동 완성 목록에 앉아있을 수 있기 때문에 blur 이벤트에서 일반적인 setTimeout을 사용할 수 없습니다.
어쩌면 내가 변수가 자동 완성으로 설정되어 열려 있다고 알 수 있습니다.
타이머가 만료되고 자동 완성이 열려 있으면 타이머를 재설정 할 수 있습니다.
다음에 변수를 설정 해제 할 수 있습니다.
또는 항목 선택시 타이머를 설정 해제 할 수 있습니까?
당신은 어떻게 생각하십니까?