paul-cheung

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);
                        }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2021-12-07
  • 2022-12-23
  • 2021-04-17
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2021-11-28
  • 2021-07-11
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案