e媒网络

一切皆可能 e媒网络 http://www.eMay.net

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  Mvc项目教学

该文被密码保护。
posted @ 2022-03-24 19:14 e媒网络技术团队 阅读(11) 评论(0) 推荐(0)

摘要:1.强制xml输出格式转换成Json: protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); Fi 阅读全文
posted @ 2022-03-24 08:33 e媒网络技术团队 阅读(43) 评论(0) 推荐(0)

摘要:前端核心代码: @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Vue Add Test</title> <script sr 阅读全文
posted @ 2022-03-24 08:28 e媒网络技术团队 阅读(129) 评论(0) 推荐(0)

摘要:后台核心代码: public JObject Get(int a, int b) { var jo = new JObject(); jo.Add("sum", a + b); return jo; } 前台核心代码: @{ Layout = null; } <!DOCTYPE html> <htm 阅读全文
posted @ 2022-03-24 08:23 e媒网络技术团队 阅读(35) 评论(0) 推荐(0)

摘要:后端核心代码: public JObject Get(int a, int b) { var jo = new JObject(); jo.Add("sum", a + b); return jo; } 前端核心代码: @{ ViewBag.Title = "Ajax-WebApi-加法演示"; } 阅读全文
posted @ 2022-03-23 17:54 e媒网络技术团队 阅读(38) 评论(0) 推荐(0)

该文被密码保护。
posted @ 2022-03-23 10:39 e媒网络技术团队 阅读(9) 评论(0) 推荐(0)

摘要:控制器: public ActionResult CalSum(string FirstNum,string SecondNum) { int iFirst, iSecond, iSum; iFirst = int.Parse(FirstNum); iSecond = int.Parse(Secon 阅读全文
posted @ 2022-03-23 09:32 e媒网络技术团队 阅读(101) 评论(0) 推荐(0)

该文被密码保护。
posted @ 2020-04-13 17:10 e媒网络技术团队 阅读(170) 评论(0) 推荐(0)