diff options
author | Kevin CHEN <33132228+KevinZonda@users.noreply.github.com> | 2021-09-06 11:38:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 07:38:56 -0300 |
commit | aa39391db80dc89752de701a18ff6581d31040fb (patch) | |
tree | 9efd6a9b2529af78f926611f28fdec1b81e4f686 /files/pt-br/web/api | |
parent | 6c094948c62abdbb132a28a26c0a5042ce2ffb20 (diff) | |
download | translated-content-aa39391db80dc89752de701a18ff6581d31040fb.tar.gz translated-content-aa39391db80dc89752de701a18ff6581d31040fb.tar.bz2 translated-content-aa39391db80dc89752de701a18ff6581d31040fb.zip |
add syntax highlight (#2321)
Diffstat (limited to 'files/pt-br/web/api')
-rw-r--r-- | files/pt-br/web/api/url/searchparams/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/pt-br/web/api/url/searchparams/index.html b/files/pt-br/web/api/url/searchparams/index.html index 48d5af7416..70e6756f85 100644 --- a/files/pt-br/web/api/url/searchparams/index.html +++ b/files/pt-br/web/api/url/searchparams/index.html @@ -19,7 +19,7 @@ translation_of: Web/API/URL/searchParams <p>Se a URL da sua página é <code>https://example.com/?name=Jonathan&age=18</code> você pode parsear os parametros 'name' e 'age' usando:</p> -<pre class="default prettyprint prettyprinted notranslate">let params = (new URL(document.location)).searchParams; +<pre class="default prettyprint prettyprinted notranslate brush: js">let params = (new URL(document.location)).searchParams; let name = params.get("name"); // é a string "Jonathan" let age = parseInt(params.get("age")); // é o número 18</pre> |