ajax请求后根据条件进行页面跳转
$.ajx({ url: "@Url.Action("DetectCorporationCompetencyCreated", "DataBase")", data: { corporationId: rowId }, async:false, success: function (data) { corporationHasCompetencyCreated = data > 0; }, error: function () { alert("检测企业数据库存在能力失败"); } }); if (corporationHasCompetencyCreated) { window.open("@Url.Action("ConfigCompetency", "CorporationManagement")" + "?corporationId=" + rowId, "_self", "", true); }
posted on 2014-04-08 17:58 paul_cheung 阅读(711) 评论(0) 收藏 举报
浙公网安备 33010602011771号