Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Eclips
- 안드로이드
- Graphic
- JavaScript
- AWT
- oracle
- 어노테이션
- Java
- Android
- 배열
- 오버로딩
- 메소드
- 기본
- 메서드
- mybatis
- Menu
- 국제화
- 생성자
- struts2
- JSP
- 에러페이지
- HTML
- 예외처리
- paint
- layout
- 전화걸기
- 이클립스
- Spring
- OGNL
- 클래스
Archives
- Today
- Total
note
객체와 반복문 본문
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>객체와 반복문</title>
<script>
//변수를 선언합니다.
var product = {
name: 'Microsoft Visual Studio 2010 Ultimate',
price: '15,000,000원',
language: '한국어',
supportOS: 'win32/64',
subscription: true
};
//출력합니다.
var output = '';
for(var key in product){
output += '●' + key + ' : ' + product[key] + '\n';
}
alert(output);
</script>
</head>
<body>
</body>
</html>
'JavaScript > 기본' 카테고리의 다른 글
| 동적으로 메서드 추가 (0) | 2012.03.13 |
|---|---|
| in 키워드 (0) | 2012.03.13 |
| this 키워드 (0) | 2012.03.13 |
| 숫자관련 내장함수 isFinite / isNaN (0) | 2012.03.12 |
| eval() 함수 (0) | 2012.03.12 |