return Json(new{data=true})关于ajax成功的方法
$.ajax({ type: 'POST', url: 'your url', data:your data success: function (data) { if (data) { window.location.href="url"; } else { window.location.href="url"; } }, error: function (xhr, textStatus, errorThrown) { alert(errorThrown); } }); return false;


