JSON: How do I make cross-domain JSON call

前端 未结 8 919
情歌与酒
情歌与酒 2020-11-30 06:54

I try to run the following jquery code in local Network.

 $.ajax({
     type: \"GET\",
     url: \"http://SomeSite/MyUrl/\",
     cache: false,
     data: {         


        
8条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 07:48

    You can try jsonp request http://api.jquery.com/jQuery.ajax/ see crossdomain

提交回复
热议问题