Cross-site AJAX using jQuery

后端 未结 3 1741
野趣味
野趣味 2020-12-03 12:52

I have an existing jQuery plugin which makes a lot of AJAX calls (mostly JSON). I am wondering what is the quickest to allow it to do cross-site calls i.e. the $.get and $.p

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 13:12

    If you have control over the remote domain or the remote domain has a permissive crossdomain.xml you can drop in a library like flXHR in conjunction with its jQuery plugin.

提交回复
热议问题