HttpContext.Current时间:2022-01-24 07:24:36HttpContext. Response 直接这样写会报错 是因为 httpcontext没有提供response 这个静态的方法。 通过这样写就可以 ASP.NET还为它提供了一个静态属性HttpContext.Current来访问它