摘要: <h2>Redis存取</h2> <div> <input id="Key" type="text" placeholder="请输入要存的键值" /><input id="Value" type="text" placeholder="请输入要存的值" /> <input id="InRedis" 阅读全文
posted @ 2020-08-06 20:49 经常偶尔 阅读(12) 评论(0) 推荐(0) 编辑
摘要: RedisClient redisClient = new RedisClient("127.0.0.1", 6379); [HttpGet] public int RedisInsert(string Key, string Value) { if (!(string.IsNullOrEmpty( 阅读全文
posted @ 2020-08-06 20:46 经常偶尔 阅读(37) 评论(0) 推荐(0) 编辑
摘要: select * from Goods --创建存储过程create proc sp_Show( @index int, --当前页 @size int, --每页大小 @totalcount int out, --总数据数 @pagecount int out --总页数)asbegin --计算 阅读全文
posted @ 2020-08-06 20:45 经常偶尔 阅读(55) 评论(0) 推荐(0) 编辑
摘要: <h2>购物车页面</h2> <table class="table table-bordered"> <thead> <tr> <td>商品名称</td> <td>商品价格</td> </tr> </thead> <tbody id="tb"></tbody></table> <script> / 阅读全文
posted @ 2020-08-06 20:43 经常偶尔 阅读(42) 评论(0) 推荐(0) 编辑
摘要: table class="table table-bordered"> <thead> <tr> <td>商品名称</td> <td>商品图片</td> <td>商品价格</td> <td>加入购物车</td> </tr> </thead> <tbody id="tb"></tbody></tabl 阅读全文
posted @ 2020-08-06 20:40 经常偶尔 阅读(29) 评论(0) 推荐(0) 编辑
摘要: ShopDB db = new ShopDB(); //分页显示商品 [HttpGet] public PageDate GetGoods(int index, int size) { PageDate page = new PageDate(); var list = db.Goods.ToLis 阅读全文
posted @ 2020-08-06 20:39 经常偶尔 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <table class="table table-bordered"> <tr> <td>商品名称:</td> <td><input id="name" type="text" /></td> </tr> <tr> <td>商品颜色:</td> <td><input id="color" type 阅读全文
posted @ 2020-08-06 20:29 经常偶尔 阅读(99) 评论(0) 推荐(0) 编辑
摘要: <h2>商品列表</h2> <a id="a">导出列表</a> <table class="table table-bordered"> <thead> <tr> <td>商品图片</td> <td>商品名称</td> <td>商品颜色</td> <td>商品尺码</td> <td>商品价格</t 阅读全文
posted @ 2020-08-06 20:27 经常偶尔 阅读(50) 评论(0) 推荐(0) 编辑
摘要: <h2>添加商品</h2> <table class="table table-bordered"> <tr> <td>商品名称:</td> <td><input id="name" type="text" /></td> </tr> <tr> <td>商品图片:</td> <td><input t 阅读全文
posted @ 2020-08-06 20:25 经常偶尔 阅读(81) 评论(0) 推荐(0) 编辑
摘要: create database Month6use Month6 --用户表create table UserInfo( UId int primary key identity, UName varchar(max), --登录名 UPwd varchar(max) --密码) --商品表crea 阅读全文
posted @ 2020-08-06 20:24 经常偶尔 阅读(102) 评论(0) 推荐(0) 编辑