홈 › Components › Action Button (행동 버튼) › 화면 1
화면 1. Action Button.timeSincePress [source]
원본: Computation Layer 문서(Action Button (행동 버튼)) · Try It (원본 화면)
| 화면 번호 | 1 / 12 |
|---|---|
| 문서 항목 설명 (원문) | timeSincePressmaxTime: number Gets the seconds (plus milliseconds) since the "Submit" button was pressed. It resets to zero if the "reset" link is pressed, or if a component on the same page is focused or edited. By default, it runs to 10 seconds and then stops. Increase that time by passing a parameter, as in timeSincePress(20). |
1. 화면 캡처 (빨간 번호 = 아래 표의 번호)
- How many seconds has it been since you pressed "Submit"?
2. CL이 입력된 곳
| 번호 | 이름 | 종류 | CL 코드 원문, 번역, 설명 |
|---|---|---|---|
| 1 | 레이블 없는 메모 | 메모 | # This code imports the time since a student pressed an # action button called "submitMe" and assigns it to a variable # called "myTime". ▷ 이 코드는 학생이 "submitMe"라는 행동 버튼을 누른 뒤 지난 시간을 가져와 "myTime"이라는 변수에 정한다. myTime = submitMe.timeSincePress ▶ 변수 myTime은 행동 버튼 submitMe를 누른 뒤 지난 시간( |