JQuery won't get json?

前端 未结 5 1547
一向
一向 2020-12-03 12:07

So I\'m trying to complete the simple task of getting json data from google, but this little bit of jquery code won\'t run. Will you please help me figure out why?



        
5条回答
  •  一整个雨季
    2020-12-03 12:16

    Make sure it's not a cross-domain issue. I guess, for jQuery to be able to call other domain URLs, you need to specify the URL in some special format. I don't exactly remember, but maybe the "?" (question mark) appended in the end of URL?

提交回复
热议问题