JSON: How do I make cross-domain JSON call

前端 未结 8 920
情歌与酒
情歌与酒 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:28

    Please have a look at cross domain jquery ajax request. If the remote server supports JSONP then I guess you can using callback.

提交回复
热议问题