Parameter

Declares a parameter to a method. Each parameter has a name attribute with becomes a variable that is declared in the method body and has the value that was passed in to the method.

More information about parameter

メソッドに渡すパラメータを宣言する。各パラメータは name 属性を持つ。この値が、メソッドボディで宣言されてメソッドへ渡される値を持つ変数となる。

parameter の追加情報

属性:

id name

属性:

id

Type: element id, must be unique in the window

A unique identifier so that you can identify the parameter with. You can use this as a parameter to getElementById and other DOM functions and to reference the element in style sheets.

型 : 要素 id。ウィンドウ内で一意でなければならない。

parameter を識別できるユニークな識別子。getElementById や他の DOM 関数へのパラメータとして、またスタイルシートの要素への参照として使用することができる。

name

The name of the parameter. This will be declared as a variable within the method body and given the value passed in as the corresponding method parameter.

パラメータの名前。メソッドボディ内部の変数として宣言され、対応するメソッドのパラメータとして渡される値が与えられる。


Copyright (C) 1999 - 2004 XulPlanet.com