★JavaScript Reference 真偽、配列、演算

戻る JavaScript Reference(真偽、配列、演算) 進む


オブジェクトの種類
ナビゲータオブジェクト オブジェクト
ビルトインオブジェクト オブジェクト
JavaScriptバージョンに対応するオブジェクト

JavaScript1.0

オブジェクト名 

JavaScript1.1

オブジェクト名 

JavaScript1.2

オブジェクト名 


種類

対応

名称

タイプ

書式

説    明

真偽

N3N4N6N7
O6NA1GA1MO1K2
E4E5Internet Explorer 5 Macintosh EditionE6

Boolean

オブジェクト

ブーリアンオブジェクト名=new Boolean(true又はfalse 省略可)

ブーリアン(真偽)を扱うオブジェクト。

配列

N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6

Array

オブジェクト

配列オブジェクト名=new Array(配列数 カンマ区切り配列データ 省略可)

配列を扱うオブジェクト。

N4N6N7
O6NA1GA1MO1K2
E4E5Internet Explorer 5 Macintosh EditionE6
concat メソッド 配列オブジェクト名1.concat(配列オブジェクト名2) 配列(1と2)の連結をします。
N4N6N7
O6NA1GA1MO1K2
E4E5Internet Explorer 5 Macintosh EditionE6
join メソッド 配列オブジェクト名.join(区切り文字) 配列要素の連結を(区切り文字で)します。

N4N6N7
O6NA1GA1MO1K2
E5Internet Explorer 5 Macintosh EditionE6

slice

メソッド

配列オブジェクト名.slice(開始位置 , 終了位置)

要素の抜き出しをします。

N3N4N6N7
O6NA1GA1MO1K2
E4E5Internet Explorer 5 Macintosh EditionE6

reverse

メソッド

配列オブジェクト名.reverse()

配列要素順序を逆順(反転)にします。

N3N4N6N7
O6NA1GA1MO1K2
E4E5Internet Explorer 5 Macintosh EditionE6

sort

メソッド

配列オブジェクト名.sort(関数名)

配列要素の並べ替えをします。(戻り値正は昇順、負は降順)

N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6

length

プロパティ

配列オブジェクト名.length

配列要素数を返します。読み出し用プロパティ。

演算

N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6

Math

オブジェクト

Math.メソッド、プロパティ
演算オブジェクト名=new Math()

演算を扱うオブジェクト。

N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
abs メソッド Math.abs(数式) 絶対値を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
acos メソッド Math.acos(数式) アークコサインを返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
asin メソッド Math.asin(数式) アークサインを返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
atan メソッド Math.atan(数式) アークタンジェントを返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
atan2 メソッド Math.atan2(x座標,y座標) x座標、y座標から角度を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
ceil メソッド Math.ceil(数式) 値を切り上げます。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
cos メソッド Math.cos(数式) コサインを返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
exp メソッド Math.exp() eの累乗を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
floor メソッド Math.floor(数式) 値を切り下げます。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
log メソッド Math.log(数式) eを底とする対数を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
max メソッド Math.max(比較値1,比較値2) 大きい値を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
min メソッド Math.min(比較値1,比較値2) 小さい値を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
pow メソッド Math.pow(基数,指数) べき乗を返します。
N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
random メソッド Math.random() 0から1未満の乱数を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
round メソッド Math.round(数式) 四捨五入します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
sin メソッド Math.sin(数式) サインを返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
sqrt メソッド Math.sqrt(数式) 平方根を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
tan メソッド Math.tan(数式) タンジェントを返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
E プロパティ Math.E 自然対数の底eを返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
LN10 プロパティ Math.LN10 10の自然対数を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
LN2 プロパティ Math.LN2 2の自然対数を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
LOG10E プロパティ Math.LOG10E eの常用対数(10を底とする対数)を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
LOG2E プロパティ Math.LOG2E 2を底とするeの対数を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
PI プロパティ Math.PI 円周率を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
SQRT1_2 プロパティ Math.SQRT1_2 ルート2の半分の値を返します。
N2N3N4N6N7
O6NA1GA1MO1K2
E3E4E5Internet Explorer 5 Macintosh EditionE6
SQRT2 プロパティ Math.SQRT2 ルート2の値を返します。


Copyright (C) pokochan 2000-2003
http://www.tees.ne.jp/~pokochan/java_script/reference1.html
E-mailpokochan@mx1.tees.ne.jp