입력 시간 stepUp() 메서드
예시
시간 필드 값을 10분 증가:
document.getElementById("myTime").stepUp(10);
정의 및 사용
stepDown() 메소드는 지정된 숫자만큼 시간 필드의 값을 증가시킵니다.
이 방법은 MINUTES(시간, 초 또는 밀리초가 아님)에만 영향을 미칩니다.
팁: 값을 줄이려면 stepDown() 메서드를 사용하십시오.
브라우저 지원
Method | |||||
---|---|---|---|---|---|
stepUp() | Yes | 12.0 | Not supported | Yes | Yes |
통사론
timeObject.stepUp(number)
매개변수 값
Parameter | Description |
---|---|
number | Required. Specifies the amount of minutes the time field should increase. If omitted, the minutes are incremented by "1" |
기술적 세부 사항
반환 값: | 반환 값 없음 |
---|
더 많은 예
예시
분을 1씩 증가(기본값):
document.getElementById("myTime").stepUp();
❮ 시간 개체 입력