DatetimeLocal stepDown() 메소드 입력
예시
datetime 필드의 값을 10분 감소:
document.getElementById("myLocalDate").stepDown(10);
정의 및 사용
stepDown() 메서드는 로컬 날짜/시간 필드의 값을 지정된 숫자만큼 감소시킵니다.
이 방법은 MINUTES(년, 월, 일, 시간, 초 또는 밀리초가 아님)에만 영향을 미칩니다.
팁: 값을 증가시키려면 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 객체 입력