3
Geo Location Position Object
을 String
으로 변환하고 싶습니다. 나중에 localStorage
에 저장하여 나중에 사용할 수 있습니다.개체를 파이어 폭스의 문자열로 변환
은 지금 나는 또한이 one을 확인 내가
파이어 폭스
에String
을 얻을 수있는 모든 이들의 위에 사용하여 방법
$.toJSON(position)
JSON.stringify(position) // position is the object which return from Geo Location Success callback
jQuery.stringify(position)
아래했지만 그러한
으로 도움이되지 않았다FireFox 콘솔 결과
012 3,516,jQuery.stringify(position)
이'는 내용으로 객체를 position'인가 : 당신이 할 수있는 해결 방법으로
? – Cerbrus
예. 현재 위치의 타임 스탬프와 좌표가 포함되어 있습니다. @Cerbrus – Blu
그리고'localStorage.setItem ('position', JSON.stringify (position)); – Cerbrus