📜  MVC 5 控制器返回 json 值以查看 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:32.146000             🧑  作者: Mango

代码示例2
// mvc controller
 [HttpPost]
        public ActionResult IndChecking(string dta, string isChk)
        {
          /////
           return this.Json (new { Data = result, cKey = ContainerKey }, JsonRequestBehavior.AllowGet);
        }

// view
    success: function (result) {
          alert(result.cKey);
          
    }