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