摘要: 要引用这个jquery.cookie.js 阅读全文
posted @ 2018-01-18 19:12 Mr.htb 阅读(98) 评论(0) 推荐(0) 编辑
摘要: public class stuController : Controller { BlogDBEntities db = new BlogDBEntities(); string Key = "1"; // GET: stu public ActionResult Index() { //获取re 阅读全文
posted @ 2018-01-18 19:09 Mr.htb 阅读(92) 评论(0) 推荐(0) 编辑
摘要: [HttpPost] public ActionResult Login() { //写入cookies方式1 HttpCookie cookie = new HttpCookie("tempToken"); cookie.Value = "123456"; cookie.Expires = Dat 阅读全文
posted @ 2018-01-04 13:00 Mr.htb 阅读(142) 评论(0) 推荐(0) 编辑
摘要: [EnableCors("*","*","*")] public class BlogApiController : ApiController { baweiBlogsEntities db = new baweiBlogsEntities(); public int PageSize = 5; 阅读全文
posted @ 2017-12-19 08:42 Mr.htb 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 首先顶一个类来放几个字段类里面有一个虚方法可以重写这个方法 再顶一个类继承上面的那个类 里面有重写的方法 最后才是工厂的方法 阅读全文
posted @ 2017-12-07 13:36 Mr.htb 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Web.config配置是如何配置 控制器里面的操作 还有就是小黑本的配置 cd C:\Windows\Microsoft.NET\Framework\v2.0.50727 aspnet_regsql -S localhost -E -d RWWW -ed -t Options -et(注册缓存依赖 阅读全文
posted @ 2017-12-07 13:33 Mr.htb 阅读(114) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace DAL{ /// <summary> /// 数据访问类 阅读全文
posted @ 2017-12-01 10:53 Mr.htb 阅读(84) 评论(0) 推荐(0) 编辑
摘要: namespace Unit95{ [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] 阅读全文
posted @ 2017-11-30 09:17 Mr.htb 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-28 16:38 Mr.htb 阅读(107) 评论(0) 推荐(0) 编辑
摘要: <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="http://localhost:60699" /> <add name="Access-Control-Allow-Headers" valu 阅读全文
posted @ 2017-11-28 16:33 Mr.htb 阅读(273) 评论(0) 推荐(0) 编辑