解决特殊字符不能转义

1、

 function fixedEncodeURIComponent (str) {
  return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
    return '%' + c.charCodeAt(0).toString(16);
  });
}
2、
http_build_query($array,'','&',PHP_QUERY_RFC3986);

相关文章:

  • 2021-09-07
  • 2021-11-26
  • 2021-12-22
  • 2021-12-05
  • 2021-09-10
  • 2021-06-19
  • 2022-12-23
猜你喜欢
  • 2022-01-15
  • 2021-11-02
  • 2022-12-23
  • 2022-02-14
  • 2021-05-16
  • 2021-11-28
相关资源
相似解决方案