0
为什么不在IE中调用回调函数?
呼叫到Flickr:
$.getJSON("http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos", { api_key: APIKey, photoset_id: photoSetID, format: "json", per_page: 40, nojsoncallback: 1 }, displayImages); function displayImages(data) { alert('called'); }
呼叫到YouTube:
$.getJSON('https://gdata.youtube.com/feeds/api/users/username/favorites?alt=json', function(data) { alert('called'); })
这两种类型的呼叫的工作对任何其他浏览器,除了IE浏览器。 你能解释我为什么吗?
哦,谢谢你,我不知道。只需添加插件即可解决Flickr问题。 YouTube还没有,但我认为它是可以修复的。再次感谢你! – 2012-04-10 17:20:34
还使用callback =?解决了YouTube问题:) – 2012-04-10 17:31:21