Revision 72371 of JavaScript コードモジュール

  • リビジョンの URL スラグ: JavaScript_code_modules
  • リビジョンのタイトル: JavaScript コードモジュール
  • リビジョンの ID: 72371
  • 作成日:
  • 作成者: drry
  • 現行リビジョン いいえ
  • コメント 我々はシステムにやられた!; 176 words added, 12 words removed; page display name changed to 'JavaScript コードモジュール'

このリビジョンの内容

{{ fx_minversion_header("3") }}

JavaScript code modules let multiple privileged JavaScript scopes share code. For example, a module could be used by Firefox itself as well as by extensions, in order to avoid code duplication.

General topics

Using JavaScript code modules
An introduction to how to use JavaScript code modules.
Component.utils.import
How to import a JavaScript code module.

Standard code modules

NetUtil.jsm
Provides helpful networking utility functions, including the ability to easily copy data from an input stream to an output stream asynchronously.
openLocationLastURL.jsm
Provides access to the last URL opened using the "Open Location" option in the File menu.
XPCOMUtils.jsm
Contains utilities for JavaScript components loaded by the JS component loader.
ctypes.jsm {{ fx_minversion_inline("3.6") }}
Provides an interface that allows JavaScript code to call native libraries without requiring the development of an XPCOM component.
{{ languages({ "en": "en/JavaScript_code_modules" }) }}

このリビジョンのソースコード

{{ fx_minversion_header("3") }}
<p>JavaScript code modules let multiple privileged JavaScript scopes share code. For example, a module could be used by Firefox itself as well as by extensions, in order to avoid code duplication.</p>
<table class="mainpage-table"> <tbody> <tr> <td width="50%"> <h2>General topics</h2> <dl> <dt><a class="internal" href="/ja/Using_JavaScript_code_modules" title="ja/Using JavaScript code modules">Using JavaScript code modules</a></dt> <dd>An introduction to how to use JavaScript code modules.</dd> <dt><a class="internal" href="/ja/Components.utils.import" title="ja/Components.utils.import">Component.utils.import</a></dt> <dd>How to import a JavaScript code module.</dd> </dl> </td> <td width="50%"> <h2>Standard code modules</h2> <dl> <dt><a class="internal" href="/en/JavaScript_code_modules/NetUtil.jsm" title="en/JavaScript code modules/NetUtil.jsm"><span style="font-weight: bold;">NetUtil.jsm</span></a></dt> <dd>Provides helpful networking utility functions, including the ability to easily copy data from an input stream to an output stream asynchronously.</dd> <dt><a class="internal" href="/en/JavaScript_code_modules/openLocationLastURL.jsm" title="en/JavaScript code modules/openLocationLastURL.jsm">openLocationLastURL.jsm</a></dt> <dd>Provides access to the last URL opened using the "Open Location" option in the File menu.</dd> <dt><a class="internal" href="/ja/XPCOMUtils.jsm" title="ja/XPCOMUtils.jsm">XPCOMUtils.jsm</a></dt> <dd>Contains utilities for JavaScript components loaded by the JS component loader.</dd> <dt><a href="/ja/JavaScript_code_modules/ctypes.jsm" title="ja/JavaScript code modules/ctypes.jsm">ctypes.jsm</a> {{ fx_minversion_inline("3.6") }}</dt> <dd>Provides an interface that allows JavaScript code to call native libraries without requiring the development of an XPCOM component.</dd> </dl> </td> </tr> </tbody>
</table>
{{ languages({ "en": "en/JavaScript_code_modules" }) }}
このリビジョンへ戻す