摘要: 1.在控制器上新增一个方法 public IActionResult SessionAndCookie() { string result = HttpContext.Session.GetString("session_key"); if (string.IsNullOrWhiteSpace(re 阅读全文
posted @ 2021-02-06 22:38 明志德道 阅读(578) 评论(0) 推荐(1) 编辑
摘要: public class ProteType { private static ProteType _ProteType = new ProteType(); private ProteType() { } public static ProteType GetInstance() { return 阅读全文
posted @ 2021-02-06 15:52 明志德道 阅读(96) 评论(0) 推荐(0) 编辑