$就功能的成功:不费一枪 [英] $.ajax function's success: not firing

查看:122
本文介绍了$就功能的成功:不费一枪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个$就功能职位数据。

i have a $.ajax function that POSTS a data.

我有成功的:函数(){警报(successflly贴)}

我检查Firebug的控制台,AJAX请求被提交并成功完成,但警报消息永远不会触发。

i check Firebug console, ajax request is POSTED and completed successfully, hOWEVER, the alert message never fires.

推荐答案

有可能是一些错误。尝试设置错误回调:

There's probably some error. Try setting the error callback:

error: function(httpRequest, textStatus, errorThrown) { 
   alert("status=" + textStatus + ",error=" + errorThrown);
}

这可能会告诉你,为什么它不工作

That may tell you why it's not working

这篇关于$就功能的成功:不费一枪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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