1
각주 전단 지시문에서 열려있는 모든 팝업을 닫을 수있는 함수가 있습니까? here에서 jQuery를 제안에서 근무 나는 다음과 같은 시도 :이벤트시 각주 전단 팝업 닫기
document.getElementsByClassName('.leaflet-popup-close-button').click();
을하지만 대안 내가 시도
TypeError: undefined is not a function
수 :
document.getElementsByClassName('.leaflet-popup-close-button')[0].click();
을하지만, 작동 중 하나를하지 않습니다
TypeError: Cannot read property 'click' of undefined