decodeURIComponent() function and encodeURIComponent() function

The decodeURIComponent() function can decode the URI encoded by the encodeURIComponent() function .

Usage: decodeURIComponent(URIstring)

URIstring

required. A string containing encoded URI components or other text to decode.

encodeURIComponent() function

Function: The character string can be encoded as a URI component. It returns a copy of the URIstring with some characters replaced by hexadecimal escape sequences .

Guess you like

Origin blog.csdn.net/m0_73461567/article/details/128926954