XHR请求被表示为被取消,尽管这似乎是成功的 [英] XHR request is denoted as being cancelled although it seems to be successful

查看:1034
本文介绍了XHR请求被表示为被取消,尽管这似乎是成功的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是不是一个真正的问题,因为code ++工程,但是我只是好奇,为什么会发生。

This is not really an issue, because the code works, but I am just curious as to why it happens.

我有以下jQuery的$ C $下一个ajax职位:

I have the following jQuery code for an ajax post:

$.post('./add_fee_row/<?php echo $date; ?>',post, function(data){ ... });

这一切工作正常,很正常。

It all works fine and dandy.

然而,在Chrome浏览器控制台,它说:

However in the Chrome Console it says:

为什么说取消了?

一切都发生,如果成功发布。为什么会这样说呢?

Everything happened as if the post was successful. Why does it say that?

(如果需要的PHP服务器code是可用)

(the php server code is available if needed)

我使用谷歌浏览器的版本:17.0.942.0

推荐答案

有在Chrome DevTools一个bug,它已经是固定的: HTTP://$c$c.google.com/p/chromium/issues/detail ID = 104920

There was a bug in Chrome DevTools, it is already fixed: http://code.google.com/p/chromium/issues/detail?id=104920

这篇关于XHR请求被表示为被取消,尽管这似乎是成功的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆