<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">html
<html xmlns="http://www.w3.org/1999/xhtml">ui
<head>spa
<title>控制結構for </title>xml
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />htm
<meta name="description" content="布爾教育 http://www.itbool.com" />ip
<script>utf-8
var arr=['趙','錢','孫','李'];it
for (var i = 0; i < arr.length; i++) {io
document.write(arr[i]);console
};
var h={name:"趙",su:"孫"};
for(var a in h){
console.log(a+"~"+h[a]);//此處.不可用
}
</script>
</head>
<body>
</body>
</html>