export

  • Enlace amigable (slug) de la revisión: Referencia_de_JavaScript_1.5/Sentencias/export
  • Título de la revisión: export
  • Id de la revisión: 96238
  • Creada:
  • Creador: Scipion
  • ¿Es la revisión actual? No
  • Comentario 8 words added, 8 words removed

Contenido de la revisión

 

Resumen

Permite a un script firmado proporcionar propiedades, funciones, y objetos a otro script firmado o no. Esta característica no está en ECMA-262, Edicion 3.

Sentencia
Implementado en: JavaScript 1.2, NES 3.0

Sintaxis

export name1, name2, ..., nameN;

export *;

Parametros

nameN 
Propiedad, función, u objeto a ser exportado.

Description

Typically, information in a signed script is available only to scripts signed by the same principals. By exporting properties, functions, or objects, a signed script makes this information available to any script (signed or unsigned). The receiving script uses the companion import statement to access the information.

The first syntax exports the specified properties, functions, and objects.

The second syntax exports all properties, functions, and objects from the script.

See also

import

 

{{ languages( { "en":"en/JavaScript/Reference/Statements/export", "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Instructions/export", "ja": "ja/Core_JavaScript_1.5_Reference/Statements/export", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Polecenia/export" } ) }}

Fuente de la revisión

<p> </p>
<h3 name="Summary">Resumen</h3>
<p>Permite a un script firmado proporcionar propiedades, funciones, y objetos a otro script firmado o no. Esta característica no está en ECMA-262, Edicion 3.</p>
<table class="fullwidth-table"> <tbody> <tr> <td class="header" colspan="2">Sentencia</td> </tr> <tr> <td>Implementado en:</td> <td>JavaScript 1.2, NES 3.0</td> </tr> </tbody>
</table><h3 name="Syntax">Sintaxis</h3>
<p><code> export <em>name1</em>, <em>name2</em>, ..., <em>nameN</em>; </code></p>
<p><code> export *; </code></p><h3 name="Parameters">Parametros</h3>
<dl> <dt><code><em>nameN</em></code> </dt> <dd>Propiedad, función, u objeto a ser exportado.</dd>
</dl><h3 name="Description">Description</h3>
<p>Typically, information in a signed script is available only to scripts signed by the same principals. By exporting properties, functions, or objects, a signed script makes this information available to any script (signed or unsigned). The receiving script uses the companion import statement to access the information.</p>
<p>The first syntax exports the specified properties, functions, and objects.</p>
<p>The second syntax exports all properties, functions, and objects from the script.</p>
<h3 name="See_also">See also</h3>
<p><a href="/en/JavaScript/Reference/Statements/import" title="en/JavaScript/Reference/Statements/import">import</a></p>
<p> </p>
<p>{{ languages( { "en":"en/JavaScript/Reference/Statements/export", "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Instructions/export", "ja": "ja/Core_JavaScript_1.5_Reference/Statements/export", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Polecenia/export" } ) }}</p>
Revertir a esta revisión