摘要:
添加界面 @{ ViewBag.Title = "Detail";} <a href="/Home/Index">首页</a> > <a href="/Product/Index">商品列表</a>><h2>商品id是:@ViewBag.Id</h2><input type="hidden" id= 阅读全文
摘要:
<script> $(function () { show(); }) function show() { $.ajax({ url: 'http://localhost:53134/api/Student/Show', type: 'Get', dataType: 'json', success: 阅读全文
摘要:
//1.获取秒杀商品信息的接口 public ProductInfo GetProduct(int productId) { ProductInfo productInfo = new ProductInfo(); productInfo.PId = 1; productInfo.PName = " 阅读全文
摘要:
//1.获取秒杀商品详情接口 [Route("api/GetProduct")] [HttpGet] public ProductInfo GetProduct(int productId = 1) { ProductInfo info = new ProductInfo(); info.PId = 阅读全文
摘要:
控制器 public ActionResult Index() { return View(); } public ActionResult GetKill() { return View(); } public ActionResult DingDan() { return View(); } @ 阅读全文
摘要:
GoodBll bll = new GoodBll(); /// <summary> /// 添加 /// </summary> /// <param name="model"></param> /// <returns></returns> [HttpPost] public int Add(st 阅读全文
摘要:
BLL GoodDal dal = new GoodDal(); /// <summary> /// 添加 /// </summary> /// <param name="model"></param> /// <returns></returns> public int Add(Good mode 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc; namespace WeekMvc.Controllers{ public class Goo 阅读全文
摘要:
删除,显示 @{ ViewBag.Title = "Show";} <h2>Show</h2><script src="~/Content/BandSel.js"></script> <table> <tr> <td><input id="txtName" type="text" class="fo 阅读全文
摘要:
一般处理程序 filename using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace EFDemo{ /// <summary> /// FileUpload 的摘要说明 阅读全文