想问一下问题$("#div1").click(function(){
$.get("/appoint/cls?pro=1",{pro:1},function()
{alert("请求成功");});
});
我就想让它请求成功之后自动跳入到http://q.cnblogs.com/q/new这个网页,请问怎么弄的 啊
成功之后 window.location.href='http://q.cnblogs.com/q/new';
1 $("#div1").click(function(){ 2 $.get("/appoint/cls?pro=1",{pro:1},function() 3 { 4 alert("请求成功"); 5 6 //window.location.href='http://q.cnblogs.com/q/new'; 7 //self.location='http://q.cnblogs.com/q/new'; 8 //top.location='http://q.cnblogs.com/q/new'; 9 }); 10 });
window.location.href='http://q.cnblogs.com/q/new';