Skip to content

Commit

Permalink
Merge branch 'main' into markdown-lint-rule-zh-cn-1
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Aug 27, 2024
2 parents 95a53ad + da0caba commit 57e03d6
Show file tree
Hide file tree
Showing 430 changed files with 7,312 additions and 2,999 deletions.
14 changes: 9 additions & 5 deletions files/es/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,7 @@
/es/docs/Web/API/Media_Streams_API /es/docs/Web/API/Media_Capture_and_Streams_API
/es/docs/Web/API/Media_Streams_API/Taking_still_photos /es/docs/Web/API/Media_Capture_and_Streams_API/Taking_still_photos
/es/docs/Web/API/Navigator.getUserMedia /es/docs/Web/API/Navigator/getUserMedia
/es/docs/Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers /es/docs/conflicting/Web/API/Navigator/registerProtocolHandler
/es/docs/Web/API/NavigatorConcurrentHardware /es/docs/Web/API/Navigator
/es/docs/Web/API/NavigatorConcurrentHardware/hardwareConcurrency /es/docs/Web/API/Navigator/hardwareConcurrency
/es/docs/Web/API/NavigatorGeolocation/geolocation /es/docs/Web/API/Navigator/geolocation
Expand Down Expand Up @@ -1763,7 +1764,7 @@
/es/docs/Web/API/console/log /es/docs/Web/API/console/log_static
/es/docs/Web/API/console/table /es/docs/Web/API/console/table_static
/es/docs/Web/API/console/time /es/docs/Web/API/console/time_static
/es/docs/Web/API/console/timeEnd /es/docs/Web/API/console/timeend_static
/es/docs/Web/API/console/timeEnd /es/docs/Web/API/console/timeEnd_static
/es/docs/Web/API/console/trace /es/docs/Web/API/console/trace_static
/es/docs/Web/API/console/warn /es/docs/Web/API/console/warn_static
/es/docs/Web/API/crypto_property /es/docs/Web/API/Window/crypto
Expand Down Expand Up @@ -2197,9 +2198,12 @@
/es/docs/Web/HTML/microformatos /es/docs/Web/HTML/microformats
/es/docs/Web/HTML/Índice /es/docs/Web/HTML
/es/docs/Web/HTTP/Access_control_CORS /es/docs/Web/HTTP/CORS
/es/docs/Web/HTTP/Basics_of_HTTP/Data_URIs /es/docs/Web/HTTP/Basics_of_HTTP/Data_URLs
/es/docs/Web/HTTP/Basics_of_HTTP/Datos_URIs /es/docs/Web/HTTP/Basics_of_HTTP/Data_URLs
/es/docs/Web/HTTP/Basics_of_HTTP/Identificación_recursos_en_la_Web /es/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
/es/docs/Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs /es/docs/Web/URI/Authority/Choosing_between_www_and_non-www_URLs
/es/docs/Web/HTTP/Basics_of_HTTP/Data_URIs /es/docs/Web/URI/Schemes/data
/es/docs/Web/HTTP/Basics_of_HTTP/Data_URLs /es/docs/Web/URI/Schemes/data
/es/docs/Web/HTTP/Basics_of_HTTP/Datos_URIs /es/docs/Web/URI/Schemes/data
/es/docs/Web/HTTP/Basics_of_HTTP/Identificación_recursos_en_la_Web /es/docs/orphaned/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
/es/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web /es/docs/orphaned/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
/es/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Lista_completa_de_tipos_MIME /es/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
/es/docs/Web/HTTP/Gestion_de_la_conexion_en_HTTP_1.x /es/docs/Web/HTTP/Connection_management_in_HTTP_1.x
/es/docs/Web/HTTP/Peticiones_condicionales /es/docs/Web/HTTP/Conditional_requests
Expand Down Expand Up @@ -2997,7 +3001,7 @@
/es/docs/conflicting/web/api/file/name /es/docs/web/api/file/name
/es/docs/conflicting/web/javascript/reference/deprecated_and_obsolete_features /es/docs/web/javascript/reference/deprecated_and_obsolete_features
/es/docs/conflicting/web/javascript/reference/deprecated_and_obsolete_features_a91664716c4f7753074ac042780999e0 /es/docs/web/javascript/reference/deprecated_and_obsolete_features
/es/docs/controladores_protocolos_web /es/docs/Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers
/es/docs/controladores_protocolos_web /es/docs/conflicting/Web/API/Navigator/registerProtocolHandler
/es/docs/en /en-US/
/es/docs/firefox_Web_Developer_(externo) https://addons.mozilla.org/firefox/60/
/es/docs/orphaned/MDN/Tools https://github.com/mdn/yari/tree/main/docs
Expand Down
40 changes: 20 additions & 20 deletions files/es/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -4744,10 +4744,6 @@
"modified": "2019-03-23T23:53:04.318Z",
"contributors": ["fscholz", "khalid32", "Nukeador", "HenryGR", "Mgjbot"]
},
"Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers": {
"modified": "2019-03-23T22:06:43.969Z",
"contributors": ["chrisdavidmills", "AngelFQC"]
},
"Web/API/Navigator/vibrate": {
"modified": "2019-03-23T23:32:23.651Z",
"contributors": ["fscholz", "jsx", "mmednik"]
Expand Down Expand Up @@ -5755,14 +5751,14 @@
"modified": "2019-03-23T22:20:30.589Z",
"contributors": ["AlePerez92"]
},
"Web/API/console/timeEnd_static": {
"modified": "2020-10-15T22:13:11.825Z",
"contributors": ["xlhector10"]
},
"Web/API/console/time_static": {
"modified": "2019-03-18T21:42:22.745Z",
"contributors": ["jotaoncode"]
},
"Web/API/console/timeend_static": {
"modified": "2020-10-15T22:13:11.825Z",
"contributors": ["xlhector10"]
},
"Web/API/console/trace_static": {
"modified": "2019-03-23T22:22:51.545Z",
"contributors": ["Axl-Nolasco"]
Expand Down Expand Up @@ -9428,22 +9424,10 @@
"cissoid"
]
},
"Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs": {
"modified": "2019-03-18T21:22:07.450Z",
"contributors": ["Adorta4", "carlosgocereceda"]
},
"Web/HTTP/Basics_of_HTTP/Data_URLs": {
"modified": "2019-03-23T22:24:54.977Z",
"contributors": ["Sergio_Gonzalez_Collado", "AzazelN28", "uclides"]
},
"Web/HTTP/Basics_of_HTTP/Evolution_of_HTTP": {
"modified": "2019-03-23T22:10:11.567Z",
"contributors": ["Sergio_Gonzalez_Collado", "ChrisMHM"]
},
"Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web": {
"modified": "2019-03-23T22:24:51.387Z",
"contributors": ["DaniNz", "Sergio_Gonzalez_Collado", "ChrisMHM", "uclides"]
},
"Web/HTTP/Basics_of_HTTP/MIME_types": {
"modified": "2019-11-18T08:03:54.325Z",
"contributors": [
Expand Down Expand Up @@ -13453,6 +13437,14 @@
"diegogaysaez"
]
},
"Web/URI/Authority/Choosing_between_www_and_non-www_URLs": {
"modified": "2019-03-18T21:22:07.450Z",
"contributors": ["Adorta4", "carlosgocereceda"]
},
"Web/URI/Schemes/data": {
"modified": "2019-03-23T22:24:54.977Z",
"contributors": ["Sergio_Gonzalez_Collado", "AzazelN28", "uclides"]
},
"Web/XML/Parsing_and_serializing_XML": {
"modified": "2019-03-23T22:10:22.365Z",
"contributors": ["FenixAlive"]
Expand Down Expand Up @@ -14046,6 +14038,10 @@
"modified": "2019-03-18T21:11:08.379Z",
"contributors": ["duduindo", "teoli", "semptrion", "CHORVAT", "inma_610"]
},
"conflicting/Web/API/Navigator/registerProtocolHandler": {
"modified": "2019-03-23T22:06:43.969Z",
"contributors": ["chrisdavidmills", "AngelFQC"]
},
"conflicting/Web/API/Node": {
"modified": "2019-03-23T22:08:57.260Z",
"contributors": ["tureey"]
Expand Down Expand Up @@ -15330,6 +15326,10 @@
"modified": "2019-03-23T22:46:15.359Z",
"contributors": ["juanbrujo", "raecillacastellana", "vltamara"]
},
"orphaned/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web": {
"modified": "2019-03-23T22:24:51.387Z",
"contributors": ["DaniNz", "Sergio_Gonzalez_Collado", "ChrisMHM", "uclides"]
},
"orphaned/Web/JavaScript/Reference/Errors/Undefined_prop": {
"modified": "2020-03-12T19:47:46.684Z",
"contributors": ["antixsuperstar"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Controladores de protocolos basados en web
slug: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers
slug: conflicting/Web/API/Navigator/registerProtocolHandler
original_slug: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers
---

## Antecedentes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Identificación de recursos web
slug: Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
slug: orphaned/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
original_slug: Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web
---

{{HTTPSidebar}}
Expand Down
2 changes: 1 addition & 1 deletion files/es/web/api/console/timeend_static/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Console.timeEnd()
slug: Web/API/console/timeend_static
slug: Web/API/console/timeEnd_static
---

{{APIRef("Console API")}}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: Map.prototype.clear()
slug: Web/JavaScript/Reference/Global_Objects/Map/clear
l10n:
sourceCommit: 27180875516cc311342e74b596bfb589b7211e0c
---

{{JSRef}}

El método **`clear()`** de las instancias {{jsxref("Map")}} remueve todos los elementos de este _map_.

{{EmbedInteractiveExample("pages/js/map-prototype-clear.html")}}

## Sintaxis

```js-nolint
clear()
```

### Parámetros

Ningúno.

### Valor devuelto

Ningúno ({{jsxref("undefined")}}).

## Ejemplos

### Usando clear()

```js
const myMap = new Map();
myMap.set("bar", "baz");
myMap.set(1, "foo");

console.log(myMap.size); // 2
console.log(myMap.has("bar")); // true

myMap.clear();

console.log(myMap.size); // 0
console.log(myMap.has("bar")); // false
```

## Especificaciones

{{Specifications}}

## Compatibilidad con navegadores

{{Compat}}

## Véase también

- {{jsxref("Map")}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: Map.prototype.delete()
slug: Web/JavaScript/Reference/Global_Objects/Map/delete
l10n:
sourceCommit: 88d71e500938fa8ca969fe4fe3c80a5abe23d767
---

{{JSRef}}

El método **`delete()`** de las instancias {{jsxref("Map")}} remueve el elemento especificado de este _map_ utilizando la llave del elemento que se quiere remover.

{{EmbedInteractiveExample("pages/js/map-prototype-delete.html")}}

## Sintaxis

```js-nolint
mapInstance.delete(key)
```

### Parámetros

- `key`
- : La llave de el elemento que se va a remover del objeto `Map`.

### Valor devuelto

`true` si un elemento en el objeto `Map` existía y fué removido, o `false` si el elemento no existe.

## Ejemplos

### Usando delete()

```js
const myMap = new Map();
myMap.set("bar", "foo");

console.log(myMap.delete("bar")); // Regresa true. Removido exitosamente.
console.log(myMap.has("bar")); // Regresa false. El elemento "bar" ya no esta presente.
```

## Especificaciones

{{Specifications}}

## Compatibilidad con navegadores

{{Compat}}

## Véase también

- {{jsxref("Map")}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: Map.prototype.entries()
slug: Web/JavaScript/Reference/Global_Objects/Map/entries
l10n:
sourceCommit: 27180875516cc311342e74b596bfb589b7211e0c
---

{{JSRef}}

El método **`entries()`** de las instancias {{jsxref("Map")}} regresa un nuevo objeto _[iterador de mapa](/es/docs/Web/JavaScript/Reference/Global_Objects/Iterator)_ que contiene las tuplas `[llave, valor]` para cada elemento en este _map_ en orden de inserción.

{{EmbedInteractiveExample("pages/js/map-prototype-entries.html")}}

## Sintaxis

```js-nolint
entries()
```

### Parámetros

Ningúno.

### Valor devuelto

Un nuevo [objeto de tipo iterator iterable](/es/docs/Web/JavaScript/Reference/Global_Objects/Iterator).

## Ejemplos

### Usando entries()

```js
const myMap = new Map();
myMap.set("0", "foo");
myMap.set(1, "bar");
myMap.set({}, "baz");

const mapIter = myMap.entries();

console.log(mapIter.next().value); // ["0", "foo"]
console.log(mapIter.next().value); // [1, "bar"]
console.log(mapIter.next().value); // [Object, "baz"]
```

## Especificaciones

{{Specifications}}

## Compatibilidad con navegadores

{{Compat}}

## Véase también

- {{jsxref("Map.prototype.keys()")}}
- {{jsxref("Map.prototype.values()")}}
68 changes: 68 additions & 0 deletions files/es/web/javascript/reference/global_objects/map/get/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: Map.prototype.get()
slug: Web/JavaScript/Reference/Global_Objects/Map/get
l10n:
sourceCommit: 3cfd663738e9963157d90f359789d675a6662ec2
---

{{JSRef}}

El método **`get()`** de las instancias de {{jsxref("Map")}} regresa un elemento específico de este _map_. Si el valor que esta asociado a la llave pasada como parámetro es un objeto, entonces obtendras una referencia a dicho objeto y cualquier cambio hecho a ese objeto, lo modificará también dentro del objeto `Map`.

{{EmbedInteractiveExample("pages/js/map-prototype-get.html")}}

## Sintaxis

```js-nolint
get(key)
```

### Parámetros

- `key`
- : La llave del elemento que se quiere obtener del objeto `Mqp`.

### Valor devuelto

El elemento asociado a la llave pasada como parámetro, o {{jsxref("undefined")}} si la llave no se encuentra en el objeto `Map`.

## Ejemplos

### Usando get()

```js
const myMap = new Map();
myMap.set("bar", "foo");

console.log(myMap.get("bar")); // Regresa "foo"
console.log(myMap.get("baz")); // Regresa undefined
```

### Usando get() para recuperar una referencia a un objeto

```js
const arr = [];
const myMap = new Map();
myMap.set("bar", arr);

myMap.get("bar").push("foo");

console.log(arr); // ["foo"]
console.log(myMap.get("bar")); // ["foo"]
```

Note que el _map_ mantiene una referencia al objeto original, esto significa que el objeto no puede ser reclamado por el recolector de basura, lo que puede llevar a errores de memoria inesperados. Si deseas que el objeto guardado en el _map_ tenga el mismo tiempo de vida que el objeto original, considera usar un {{jsxref("WeakMap")}}.

## Especificaciones

{{Specifications}}

## Compatibilidad con navegadores

{{Compat}}

## Véase también

- {{jsxref("Map")}}
- {{jsxref("Map.prototype.set()")}}
- {{jsxref("Map.prototype.has()")}}
Loading

0 comments on commit 57e03d6

Please sign in to comment.