Field

A field is similar to a property, except that should not have a getter or setter. It is useful as a simple holder for a value.

The field element may have content which is code that determines the initial value of the field.

More information about field

field 要素は getter 要素や setter 要素を持てないことを除いて、 property 要素と同様である。単に値を保持するのに有用である。

field 要素は内容を持つことができる。これは field の初期値を決めるコードである。

field の追加情報

属性:

id name readonly

属性:

id

Type: element id, must be unique in the window

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

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

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

name

The name of the field, which is the name that can be used via a script. For example, if a field has the name width, it can be accessed with object.width, where object is a reference to the object.

field の名前。スクリプトを通して使用される名前のこと。例えば、field が width という名前を持っていると、object.width でアクセスできる。ここで object はオブジェクトへの参照である。

readonly

If set to true, the value of the field cannot be changed. If set to false, the field may be changed.

true に設定すると、field の値を変更できない。false に設定すると、field を変更できる。


Copyright (C) 1999 - 2004 XulPlanet.com