Update article.md
line:133 word encodeURI should be decodeURI
This commit is contained in:
parent
34b51dc7ec
commit
d7a609ad0f
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ As you can see, both `Тест` in the url path and `ъ` in the parameter are en
|
||||||
If we're using strings instead of URL objects, then we can encode manually using built-in functions:
|
If we're using strings instead of URL objects, then we can encode manually using built-in functions:
|
||||||
|
|
||||||
- [encodeURI](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI) - encode URL as a whole.
|
- [encodeURI](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI) - encode URL as a whole.
|
||||||
- [encodeURI](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURI) - decode it back.
|
- [decodeURI](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURI) - decode it back.
|
||||||
- [encodeURIComponent](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) - encode URL components, such as search parameters, or a hash, or a pathname.
|
- [encodeURIComponent](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) - encode URL components, such as search parameters, or a hash, or a pathname.
|
||||||
- [decodeURIComponent](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent) - decodes it back.
|
- [decodeURIComponent](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent) - decodes it back.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue