이 코드는 현재 작업하고있는 코드이며 현재 시간에서 기본 비 - 계산 타임 스탬프를 입력하는 방법을 알 수 없습니다. 아무도 내 문제를 제발 도와 드릴까요. 내가 할 노력하고 모든버튼을 클릭하면 타임 스탬프가 입력됩니다.
<html>
<head>
<script language="JavaScript" type="text/javascript">
function getTimeStamp() {
var now = new Date();
return ((now.getMonth() + 1) + '/' + (now.getDate()) + '/' + now.getFullYear() + " " + now.getHours() + ':'
+ ((now.getMinutes() < 10) ? ("0" + now.getMinutes()) : (now.getMinutes())) + ':' + ((now.getSeconds() < 10) ? ("0" + now
.getSeconds()) : (now.getSeconds())));
}
window.onclick = "getTimeStamp" ;
</script>
</head>
<body>
<td>
<button type="button" onclick="form"><form name="getTimeStamp">
<input type=text" name="field" value="" size="11">
</form>Get Time</button></td>
<td>Test</td>
</tr>
</body>
</html>