저는 개발자가 아니지만 복사/붙여 넣기가 잘되어 있습니다.Javascript에서 Google 위치 찾기 JSON 구문 분석 (PHP 제외)
웹 페이지 (JavaScript)에서 Google 위치 찾기 JSON (https://latitude.google.com/latitude/apps/badge/api?user=xxxxxxxxxxxxxxxxx&type=json
)을 구문 분석하려고합니다. PHP 없이도 가능합니까? 그렇다면 예제 코드를 보여줄 수 있습니까?
나는 찾고 있었지만 모든 예제는 PHP를 사용했다. 당신이 잘못된 URL을 사용하는 것처럼
3 requests ❘ 21.38KB transferred ❘ 470ms (onload: 448ms, DOMContentLoaded: 448ms)
104ms157ms209ms261ms313ms366ms418ms470ms
OPTIONS https://latitude.google.com/latitude/apps/badge/api?&user=xxxxxxxxxxxxxxxx 405 (Method Not Allowed) jquery.min.js:19
o.extend.ajax jquery.min.js:19
o.extend.get jquery.min.js:19
o.extend.getJSON jquery.min.js:19
(anonymous function) json.html:12
o.extend.ready.o.readyList jquery.min.js:19
o.extend.each jquery.min.js:12
o.extend.ready jquery.min.js:19
(anonymous function) jquery.min.js:19
XMLHttpRequest cannot load https://latitude.google.com/latitude/apps/badge/api?&user=xxxxxxxxxxxxxxxxxxxxxx. Origin h ttp://dl.dropbox.com is not allowed by Access-Control-Allow-Origin.
에 독서 좋을 것. – Zlatko