2012-10-09 1 views

답변

2

아마도 same-origin policy problem 일 것입니다. GitHub API supports JSONP, 그래서 그것을 사용할 수 있습니다. jQuery는 URL에서 callback=?을 선택하고 JSONP를 자동으로 사용합니다.

$.getJSON('https://api.github.com/users/binroot/gists?callback=?', function(data) { 
    // do whatever as before, but note that your data 
    // will now be in a property called "data" with the 
    // header information in "meta" 
}); 
+0

감사합니다! 이 작동합니다. – BinRoot

+0

John, https://gist.github.com/raw/3849235/5fb40674a675c550d251d4d8f1bb73cd9375617f/thinkpad.quote에 대한 요청도 콜백이 필요합니까? – BinRoot

관련 문제