很简单,做过本地化的人我认为都应该清楚,中文和一些特殊符号是无法直接在URL里传递的,但可以加工后传递,获取的时候再解加工

后台代码:

System.Web.HttpUtility.UrlEncode(str)

System.Web.HttpUtility.UrlDecode(str)

JS:

encodeURI(str);

decodeURI(str);

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2021-09-10
  • 2021-05-31
  • 2021-12-23
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-06-09
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案