jQuery $.ajax求解释?谢谢

xuan19900414 2012-03-23 06:25:57
$.ajax({
type:"GET",
url:"fax/deleteFax.jsp?"+ids+"&location_id="+location_ids+"&lft_"+times.getTime(),
async:true,
success:function(data){

},
error:function(){
alert("出错");
}
});
为什么出错呢?求解释,请求deleteFax.jsp得不到响应
...全文
160 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
m540920181 2012-04-13
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 的回复:]

fax/deleteFax.jsp?"+ids+"&location_id="+location_ids
假设ids=aaa,location_ids=bbb那么url拼完以后就是
fax/deleteFax.jsp?aa&location_id=bbb了,这个地址正确?
"?"号后面是不是应该有参数 类似fax/deleteFax.jsp?ids="+ids+"&……
[/Quote]
看看,你的路径对不对吧
anzhiqiang_touzi 2012-04-13
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
1.async:true//默认的就是true 表示异步.默认的也是GET请求
2.确认你的url是不是正确的,少了/还是../
3.服务器端返回的是否正确
4.error方法是有3个参数的 分别看一下具体是什么错误
[/Quote]
乘桴游海 2012-03-29
  • 打赏
  • 举报
回复
fax/deleteFax.jsp?"+ids+"&location_id="+location_ids
假设ids=aaa,location_ids=bbb那么url拼完以后就是
fax/deleteFax.jsp?aa&location_id=bbb了,这个地址正确?
"?"号后面是不是应该有参数 类似fax/deleteFax.jsp?ids="+ids+"&location_id="+location_ids
jonefy 2012-03-27
  • 打赏
  • 举报
回复
得不到响应,看错误代码 应该是url问题!!
_懒猫 2012-03-27
  • 打赏
  • 举报
回复
果断FF调试吧
xuan19900414 2012-03-23
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ifandui 的回复:]

1.async:true//默认的就是true 表示异步.默认的也是GET请求
2.确认你的url是不是正确的,少了/还是../
3.服务器端返回的是否正确
4.error方法是有3个参数的 分别看一下具体是什么错误
[/Quote]error的用法能说的具体点吗 ?麻烦了
Acesidonu 2012-03-23
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ifandui 的回复:]

1.async:true//默认的就是true 表示异步.默认的也是GET请求
2.确认你的url是不是正确的,少了/还是../
3.服务器端返回的是否正确
4.error方法是有3个参数的 分别看一下具体是什么错误
[/Quote]
++
默默不得鱼 2012-03-23
  • 打赏
  • 举报
回复
1.async:true//默认的就是true 表示异步.默认的也是GET请求
2.确认你的url是不是正确的,少了/还是../
3.服务器端返回的是否正确
4.error方法是有3个参数的 分别看一下具体是什么错误

52,797

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧