1.导入 using System.Web.SessionState; 2.添加 public class TreeData : IHttpHandler, IRequiresSessionState, IReadOnlySessionState{} 3.使用 System.Web.HttpContext.Current.Session["num"].ToString(); 相关文章: 2021-12-11 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2021-08-14