cross domain jquery ajax request

前端 未结 1 1729
抹茶落季
抹茶落季 2020-12-19 21:19

I am sending ajax request to a url http://json-cricket.appspot.com/score.json by the code

var url=\"http://json-cricket.appspot.com/score.json\";
$.get(url,         


        
相关标签:
1条回答
  • 2020-12-19 21:30

    It is because it is a cross-domain ajax request.

    For more info, you can have a look at the wikipedia article http://en.wikipedia.org/wiki/JSON#JSONP

    0 讨论(0)
提交回复
热议问题