Merge pull request #1166 from hzjjg/patch-1
article network-> url: line 133 word “encodeURI” should be “decodeURI”
This commit is contained in:
commit
6831c5e887
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:
|
||||
|
||||
- [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.
|
||||
- [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