인프런 커뮤니티 질문&답변
GeolocationPositionError 오류 해결법 공유
해결된 질문
작성
·
996
2
index.html에서 오른쪽 버튼 누르고,
Open with Live Server 누르시면
아래 사진과 같이 IP주소로 url이 뜨시는 경우
192.168.0.14:5500/ToDo-list/index.html
↓
localhost:5500/ToDo-list/index.html
이렇게 바꾸어 주시면 됩니다.
GeolocationPositionError가 사라집니다.
제가 겪은 시행착오를 여러분들은 겪으시지 않기 바랍니다.

퀴즈
61%나 틀려요. 한번 도전해보세요!
JavaScript에서 사용자의 현재 위치 정보(위도, 경도)를 가져오기 위해 주로 사용되는 `Navigator.geolocation` 객체의 메서드는 무엇일까요?
getPosition
askForLocation
getCurrentPosition
getLocationData





