How to encode periods for URLs in Javascript?

后端 未结 8 1992
耶瑟儿~
耶瑟儿~ 2020-12-15 15:29

The SO post below is comprehensive, but all three methods described fail to encode for periods.

Post: Encode URL in JavaScript?

For instance, if I run the th

8条回答
  •  星月不相逢
    2020-12-15 16:33

    If its possible using a .htaccess file would make it really cool and easy. Just add a \ before the period. Something like:\.

提交回复
热议问题