Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 292041 of Características Despreciadas

  • Enlace amigable (slug) de la revisión: Referencia_de_JavaScript_1.5/Características_Despreciadas
  • Título de la revisión: Características Despreciadas
  • Id de la revisión: 292041
  • Creada:
  • Creador: DSN XP
  • ¿Es la revisión actual? No
  • Comentario /* Secuencias de Escape */

Contenido de la revisión

Este apéndice lista las características que son desaprobadas en JavaScript 1.5.


Propiedades de RegExp

Las siguientes propiedades son despreciadas:

Propiedad Descripción
$1, ..., $9 Coincidencias de sub cadenas parentizandas, si existe una.
$_ Véase entrada.
$* Véase multilínea.
$& Véase última coincidencia.
$+ Véase ultimo paréntesis.
$` Véase contexto izquierdo.
$' Véase contexto derecho.
entrada The string against which a regular expression is matched.
lastMatch The last matched characters.
lastParen The last parenthesized substring match, if any.
leftContext The substring preceding the most recent match.
rightContext The substring following the most recent match.

The following are now properties of RegExp instances, no longer of the RegExp object:

</tr>

Property Description
global Whether or not to test the regular expression against all possible matches in a string, or only against the first.
ignoreCase Whether or not to ignore case while attempting a match in a string.
lastIndex The index at which to start the next match.
multiline Whether or not to search in strings across multiple lines.
source The text of the pattern.

RegExp Methods

The compile method is deprecated.

The valueOf method is no longer specialized for RegExp. Use Object.valueOf.

Secuencias de Escape

Las secuencias octales de escape (\ seguida por uno, dos o tres dígitos octales) son deaprobadas en cadenas y literales de expresiones regurales.

Las funciones escape y unescape son desaprobadas. Utilice encodeURI, encodeURIComponent, decodeURI o decodeURIComponent para codificar y decodificar secuencias de escape para caracteres especiales.

{{ wiki.languages( { "ja": "ja/Core_JavaScript_1.5_Reference/Deprecated_Features", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Przestarza\u0142e_w\u0142asno\u015bci_i_metody" } ) }}

Fuente de la revisión

<p>
</p><p>Este apéndice lista las características que son desaprobadas en JavaScript 1.5.
</p><p><br>
</p>
<h3 name="Propiedades_de_RegExp"> Propiedades de RegExp </h3>
<p>Las siguientes propiedades son despreciadas:
</p>
<table class="standard-table">
<tbody><tr>
<th>Propiedad</th>
<th>Descripción</th>
</tr>
<tr>
<td><code>$1, ..., $9</code></td>
<td>Coincidencias de sub cadenas parentizandas, si existe una.</td>
</tr>
<tr>
<td><code>$_</code></td>
<td>Véase entrada.</td>
</tr>
<tr>
<td><code>$*</code></td>
<td>Véase multilínea.</td>
</tr>
<tr>
<td><code>$&amp;</code></td>
<td>Véase última coincidencia.</td>
</tr>
<tr>
<td><code>$+</code></td>
<td>Véase ultimo paréntesis.</td>
</tr>
<tr>
<td><code>$`</code></td>
<td>Véase contexto izquierdo.</td>
</tr>
<tr>
<td><code>$'</code></td>
<td>Véase contexto derecho.</td>
</tr>
<tr>
<td><code>entrada</code></td>
<td>The string against which a regular expression is matched.</td>
</tr>
<tr>
<td><code>lastMatch</code></td>
<td>The last matched characters.</td>
</tr>
<tr>
<td><code>lastParen</code></td>
<td>The last parenthesized substring match, if any.</td>
</tr>
<tr>
<td><code>leftContext</code></td>
<td>The substring preceding the most recent match.</td>
</tr>
<tr>
<td><code>rightContext</code></td>
<td>The substring following the most recent match.</td>
</tr>
</tbody></table>
<p>The following are now properties of RegExp instances, no longer of the RegExp object:
</p>
<p>&lt;/tr&gt;
</p><table class="standard-table">
<tbody><tr>
<th>Property</th>
<th>Description</th>
</tr>
<tr><td><code>global</code></td>
<td>Whether or not to test the regular expression against all possible matches in a string, or only against the first.</td>

</tr><tr>
<td><code>ignoreCase</code></td>
<td>Whether or not to ignore case while attempting a match in a string.</td>
</tr>
<tr>
<td><code>lastIndex</code></td>
<td>The index at which to start the next match.</td>
</tr>
<tr>
<td><code>multiline</code></td>
<td>Whether or not to search in strings across multiple lines.</td>
</tr>
<tr>
<td><code>source</code></td>
<td>The text of the pattern.</td>
</tr>
</tbody></table>
<h3 name="RegExp_Methods"> RegExp Methods </h3>
<p>The <code>compile</code> method is deprecated.
</p><p>The <code>valueOf</code> method is no longer specialized for RegExp.  Use <code>Object.valueOf</code>.
</p>
<h3 name="Secuencias_de_Escape"> Secuencias de Escape </h3>
<p>Las secuencias octales de escape (\ seguida por uno, dos o tres dígitos octales) son deaprobadas en cadenas y literales de expresiones regurales.
</p><p>Las funciones <code>escape</code> y <code>unescape</code> son desaprobadas. Utilice <code>encodeURI</code>, <code>encodeURIComponent</code>, <code>decodeURI</code> o <code>decodeURIComponent</code> para codificar y decodificar secuencias de escape para caracteres especiales.
</p>
<div class="noinclude">
</div>
{{ wiki.languages( { "ja": "ja/Core_JavaScript_1.5_Reference/Deprecated_Features", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Przestarza\u0142e_w\u0142asno\u015bci_i_metody" } ) }}
Revertir a esta revisión