标签:asc shu set head script [1] 数组 har var
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>数组练习</title>
</head>
<body>
<script type="text/javascript">
var he=‘‘;
var shuzu = new Array();
shuzu[0] = ‘彩笔1‘,
shuzu[1] = ‘彩笔2‘,
shuzu[2] = ‘彩笔3‘,
shuzu[3] = ‘彩笔4‘;
//数组循环累加
for(var i = 0 ; i<shuzu.length;i++){
he+=shuzu[i];
alert(he)
}
</script>
</body>
</html>
标签:asc shu set head script [1] 数组 har var
原文地址:http://www.cnblogs.com/yangjiansong/p/7850768.html