摘要:
后端核心代码: public JObject Get(int a, int b) { var jo = new JObject(); jo.Add("sum", a + b); return jo; } 前端核心代码: @{ ViewBag.Title = "Ajax-WebApi-加法演示"; } 阅读全文
2022年3月23日 #
摘要:
控制器: public ActionResult CalSum(string FirstNum,string SecondNum) { int iFirst, iSecond, iSum; iFirst = int.Parse(FirstNum); iSecond = int.Parse(Secon 阅读全文