ํฐ์คํ ๋ฆฌ ๋ทฐ
<%@ 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>Template ์ ์ด์ฉํ ๊ฐ์ฒด์์ฑ</title>
<script type="text/javascript">
//๊ฐ์ฒด ์์ฑ์ฉ ํ
ํ๋ฆฟ
function Person(ssn, name, address) {
this.ssn = ssn;
this.name = name;
this.address = address;
this.info = function() {
alert(this.name + ", "
+ this.ssn + ", "
+ this.address + "๊ฑฐ์ฃผ"
);
}
}
//๊ฐ์ฒด์์ฑ
var p1 = new Person(1, "ํ๊ธธ๋", "๊ฐ๋จ๊ตฌ ์ญ์ผ๋");
var p2 = new Person(2, "์๊ฑฑ์ ", "์กํ๊ตฌ ์ญ์ผ๋");
p1.info();
p2.info();
</script>
</head>
<body>
</body>
</html>
'JS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
JSON ์ด์ฉํ ๊ฐ์ฒด toString (0) | 2010.07.09 |
---|---|
JSON ์ด์ฉํ ๊ฐ์ฒด์์ฑ (0) | 2010.07.09 |
์๋ฐ์คํฌ๋ฆฝํธ ๊ธฐ์ด Obj (0) | 2010.07.09 |
์๋ฐ์คํฌ๋ฆฝํธ ๊ธฐ์ด1 (0) | 2010.07.09 |
์ผํญ์ฐ์ฐ (0) | 2009.11.05 |
- Total
- Today
- Yesterday
- ์น์์ด์ ์
- ์์์ฌ์ด๋
- ์ธํจ์ด
- Java
- asp
- php
- EL
- 2ne1
- Ajax
- ์๋ฐ์คํฌ๋ฆฝํธ
- Servlet
- ๊ธฐํ
- ๋ด๋๋ด์ฐ
- ์๋ฆฌ
- ๋ฉ๋ฐฐํ
- ๋์ค
- JSP
- ๋ณต๊ทผ์ด๋
- JavaScript
- ์นด๋ฐ์จ๋ผ์ธ
- 8๋ง์ผ
- ํจ์
- ๊ฒฝ์ ์ฉ์ด
- MySQL
- jQuery
- I Don't Care
- JSON
- JSTL
- JS
- ์๋ธ๋ฆฟ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |