jQuery ajax post在ipad chrome上使用get方法发送请求

时间:2022-10-09 11:47:17

When this code runs on chrome on ipad, it ignores the type "POST" and sends the ajax request using the get method. Is it a compatibility issue? Seems like chrome doesnt support post ajax requests?

当此代码在ipad上的chrome上运行时,它会忽略“POST”类型并使用get方法发送ajax请求。这是兼容性问题吗?好像chrome不支持发布ajax请求?

 $.ajax({
      type: "POST",
      url: "/ajaxCall",
      data: sentData,
      success: success,
      dataType: "text",
      error: function (jqXHR, textStatus, errorThrown) {
            console.log(errorThrown);
      }
 });

1 个解决方案

#1


0  

I was testing the page on k-tunnnel/v-tunnel. I found out that the problem is becaouse of these sites. Without tunneling, my calls reaches the server properly.

我在k-tunnnel / v-tunnel上测试页面。我发现问题是因为这些网站。没有隧道,我的呼叫正确到达服务器。

#1


0  

I was testing the page on k-tunnnel/v-tunnel. I found out that the problem is becaouse of these sites. Without tunneling, my calls reaches the server properly.

我在k-tunnnel / v-tunnel上测试页面。我发现问题是因为这些网站。没有隧道,我的呼叫正确到达服务器。