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: 96234
  • Creada:
  • Creador: Scipion
  • ¿Es la revisión actual? No
  • Comentario page created, 141 words added

Contenido de la revisión

 

Resumen

Allows a signed script to provide properties, functions, and objects to other signed or unsigned scripts. This feature is not in ECMA-262, Edition 3.

Statement
Implemented in: JavaScript 1.2, NES 3.0

Syntax

export name1, name2, ..., nameN;

export *;

Parameters

nameN 
Property, function, or object to be exported.

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( { "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>Allows a signed script to provide properties, functions, and objects to other signed or unsigned scripts. This feature is not in ECMA-262, Edition 3.</p>
<table class="fullwidth-table"> <tbody> <tr> <td class="header" colspan="2">Statement</td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.2, NES 3.0</td> </tr> </tbody>
</table>
<h3 name="Syntax">Syntax</h3>
<p><code> export <em>name1</em>, <em>name2</em>, ..., <em>nameN</em>; </code></p>
<p><code> export *; </code></p>
<h3 name="Parameters">Parameters</h3>
<dl> <dt><code><em>nameN</em></code> </dt> <dd>Property, function, or object to be exported.</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( { "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