Ajax请求成功后跳转新页面
1 var newTab=window.open('about:blank'); 2 $.ajax({ 3 url:'cashLoanOrderController.do?orderSave', 4 type:'POST', 5 async:true, 6 data:{ 7 openid:openid 8 }, 9 timeout:5000, 10 dataType:'json', 11 beforeSend:function(data) 12 { 13 $("#btnok").attr({"disabled":"disabled"});//禁用提交按钮 14 }, 15 success:function(data,textStatus,jqXHR){ 16 if(data.success) 17 { 18 newTab.location.href="cashLoanOrderController.do?fundside";//跳转新页面 19 } 20 }, 21 complete:function(data) 22 { 23 $("#btnok").attr({"disabled":"disabled"});//解禁 24 } 25 });