デート、Mathオブジェクト

493 ワード

1.Date
1>var d=new Dateを作成する()//現在実行時間var d 2=new Dateを返します.指定時間
2>getDate():現在のオブジェクトに戻る日d.2 get Date()//3
3>getDay():何曜日、0-6に戻り、日曜日は0 d 2 getDay()
4>getMonth():戻り月、0-11、1月は05>getFulYear():戻り年6>getTime():現在の日付タイムスタンプを返します.
   :     1970.1.1 0:0:0,            (1s =1000ms)
7>Date.now():現在のタイムスタンプを取得する
2.MathMath.abs()/Math.flook()/Math.round()/四捨五入Math.randm()/0-1乱数Math.max(1,2,3)Math.min(x)Math.pow(x,y)xのy乗冪Math.sqrt(x)//xの平方根