JQuery won't get json?

前端 未结 5 1578
一向
一向 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:34

    Try adding &callback=? to your URL string. It may work.

    See this for details > XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

提交回复
热议问题