English 中文(简体)
J Query AjaxComplete 1. 如何对待 Out头?
原标题:JQuery AjaxComplete Method Stripping Out Custom Headers?
最佳回答

Vucetica最初的反应是我思考的,我用过去一小时的眼光通过支部法。 我的习惯头盔现在回来。 在最初的阿贾克斯请求的成功呼吁中,我守则中一个无动于衷的例外情况也造成了同样的问题。

明确的东西 我应当确定,但奇怪的是, j格会允许自己以沉默不动的方式,只影响习俗头目。 这一意想不到的行为实际上导致我最初走向错误的方向。

无论如何,要感谢大家的帮助。

为了完整起见,本文是我前后的法典。

此前(未采用亚克斯·孔普特方法收到任何习惯负责人)

$.ajax({
    type: "GET",
    url: "/Game/GetPlay/27?roundId=" + that.gameState.RoundToDisplay,
    contentType: "application/json; charset=utf-8",
    data: {},
    dataType: "json",
    success: function (play, request, settings) {
        that.play = play;
        that.startGame();
    },
    error: null,
    cache: false
});

之后(工作)

$.ajax({
    type: "GET",
    url: "/Game/GetPlay/27?roundId=" + that.gameState.RoundToDisplay,
    contentType: "application/json; charset=utf-8",
    data: {},
    dataType: "json",
    success: function (play, request, settings) {
        that.play = play;
        try {
            that.startGame();
        } catch(err){

        }
    },
    error: null,
    cache: false
});
问题回答

https://stackoverflow.com/questions/3169419/jquery-ajax-complete-not-custom-reponse-header”>。 如果你在您的网页上使用同样的gin(Jaxmanager)的话,这或许是有益的。 否则,将检查你的其他gin子。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签