encodeURI("http://www.cnblogs.com/season-huang/some other thing"); //整个URL进行编码
"http://www.a.com?foo="+encodeURIComponent(param);

decodeURI 或 decodeURIComponent

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-06-07
猜你喜欢
  • 2021-07-16
  • 2021-07-29
  • 2022-02-11
  • 2021-12-21
  • 2021-12-13
  • 2021-08-31
  • 2021-07-26
相关资源
相似解决方案