我可以通过POST发出JSONP请求吗? [英] Can I do a JSONP request with POST?
本文介绍了我可以通过POST发出JSONP请求吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试避免使用jQuery,并希望使用本机解决方案.如何使用JSONP发布信息?
I'm trying to avoid jQuery and would like to use a native solution. How can I POST with JSONP?
推荐答案
您不能.
JSONP通过在页面中插入<script>
标记来工作,然后可以从远程服务器检索数据.显然,没有办法POST
一个<script>
标签.
JSONP works via inserting a <script>
tag in the page, which then allows data to be retrieved from the remote server. Obviously there's no way to POST
a <script>
tag.
这篇关于我可以通过POST发出JSONP请求吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文