urlencode Component urlencode 區別

不要對整個URL進行Component urlencode進行編碼(比如在線工具,整個HTTP結構都搞亂了),常用於對參數進行編碼。 urlencode可對整個url進行編碼,但不會破壞HTTP的結構,因爲它不會對「:」等字符進行編碼。 自己嘗試一下便知,千萬別盲目用線上工具 具體可看大佬的小結:JS escape urlencodeComponent urlencode 區別
相關文章
相關標籤/搜索