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 阅读(706) 评论(0) 编辑 收藏 举报