context.Response.ContentType = "text/plain; charset=utf-8"; -------此方法只能输出文本

 Response.WriteAsync("<script>alert('添加品牌成功!');location.href='/ProductInfos/ShowProduct';</script>", Encoding.GetEncoding("GB2312"));

 

相关文章:

  • 2021-09-11
  • 2022-02-10
  • 2021-11-11
  • 2021-08-12
  • 2019-10-28
  • 2020-07-14
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-08-21
  • 2022-01-23
  • 2021-12-02
相关资源
相似解决方案