如果json参数中存在“"”,json会自动截取双引号后面的字符串,为了让双引号正常显示,在后台.cs文件拼接参数时使用

HttpContext.Current.Server.HtmlEncode(item.AttributeName)

对参数进行html加密,前台不用处理即可正常显示

相关文章:

  • 2022-12-23
  • 2022-02-05
  • 2021-07-13
  • 2022-12-23
  • 2021-05-23
  • 2021-05-02
  • 2021-11-20
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2021-12-01
  • 2021-10-20
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案