DatetimeLocal stepDown()メソッドを入力します
例
日時フィールドの値を10分デクリメントします。
document.getElementById("myLocalDate").stepDown(10);
定義と使用法
stepDown()メソッドは、ローカル日時フィールドの値を指定された数値だけデクリメントします。
この方法は、分にのみ影響します(年、月、日、時間、秒、またはミリ秒には影響しません)。
ヒント:値をインクリメントするには、 stepUp()メソッドを使用します。
ブラウザのサポート
Method | |||||
---|---|---|---|---|---|
stepDown() | Yes | 12.0 | Not supported | Yes | Yes |
構文
datetimelocalObject.stepDown(number)
パラメータ値
Parameter | Description |
---|---|
number | Required. Specifies the amount of minutes the datetime field should decrease. If omitted, the minutes are decremented by "1" |
技術的な詳細
戻り値: | 戻り値なし |
---|
その他の例
例
分を1デクリメントします(デフォルト):
document.getElementById("myLocalDate").stepDown();
❮入力DatetimeLocalオブジェクト