javascript - 我可以测试 jsonp ajax 调用的任何公共(public) api?

标签 javascript jquery ajax

除了 Twitter,我想知道有没有人知道我可以尝试使用 jsonp 协议(protocol)进行 ajax 调用的任何公共(public) Web API?

最佳答案

jsfiddle 提供了一个非常有用的回显工具:http://doc.jsfiddle.net/use/echo.html

JSONP URL: http://jsfiddle.net/echo/jsonp/

Data has to be provided via GET. jsFiddle will respond all data given in request. It uses URL with host and protocol as it’s loaded from different domain. callback and delay will not be returned.

callback name of the jsonp function delay optional, it’s a time in seconds after which data should be returned

关于javascript - 我可以测试 jsonp ajax 调用的任何公共(public) api?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12014245/

相关文章:

javascript - Flexslider 在我的电脑上运行,但在线上传后无法加载

javascript - 如何在悬停后重置 CSS 背景 GIF

javascript - 无法在 JS 中循环分组数组

javascript - element.ready 与 angular.element($document).ready

javascript - 传递参数时事件监听器过早触发

php - JQuery $.get() 中 function(data){} 的用途

javascript - 在 javascriptPost 方法中隐藏查询字符串

jquery - 如何解决请求的资源上不存在 'Access-Control-Allow-Origin' header

javascript - 如何存储信息以正确显示构成单个游戏角色/对象/NPC 的多个图像?

javascript - 如何让自定义钩子(Hook)响应状态变化?