<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>JSP Test</title>
</head>
<body>
<script type="text/javascript">
arr = new Array();
arr[0] = 5;
arr[1] = 3;
arr[2] = 2;
arr[3] = 1;
arr[4] = 4;
document.write(arr.sort()+"<br>");
d = new Date();
document.write(d.getYear()+"년<br>");
</script>
</body>
</html>
result)
댓글 없음:
댓글 쓰기