
ie浏览器下执行jquery post方法,回调函数中跳转页面不成功,试了好几种方法都不行!
贴出代码,求救!$.post("../site/updateReply.action",{repid:repid,//答复idcontent:content,//追问内容...
贴出代码,求救!
$.post("../site/updateReply.action",{
repid:repid,//答复id
content:content,//追问内容
quesid:quesid//问题id
},function(question){
//window.location.href="../site/que_rep_"+question.tbid+"_"+question.isreply+".html";
//document.location.replace("../site/que_rep_"+question.tbid+"_"+question.isreply+".html");
window.setTimeout(function(){ location.href="../site/que_rep_"+question.tbid+"_"+question.isreply+".html";}, 100);
}); 展开
$.post("../site/updateReply.action",{
repid:repid,//答复id
content:content,//追问内容
quesid:quesid//问题id
},function(question){
//window.location.href="../site/que_rep_"+question.tbid+"_"+question.isreply+".html";
//document.location.replace("../site/que_rep_"+question.tbid+"_"+question.isreply+".html");
window.setTimeout(function(){ location.href="../site/que_rep_"+question.tbid+"_"+question.isreply+".html";}, 100);
}); 展开
2个回答
展开全部
window.open('url地址')试试?或者输出Url试试,看Url拼写对不对,又或者你的post没有返回,回调函数根本没执行。。
追问
回调函数执行了,我测试了,在 谷歌,火狐搜狗下都没问题,只有在ie下不行,我试open的方法也不行,就是不跳转刷新,post执行更改回复内容,回调函数执行的是查询更改后的内容
追答
是ie兼容性问题了,我也验证过了,直接后台做跳转,前台不返回json,Url后台拼好后台去跳转。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |