关于数组输出问题
( ╯□╰ ),一言不合就上菜!
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数组</title>
<script type="text/javascript">
var arr=new Array();
var arr=["*@*","*#*","*$*","*%*","*^*","*&*","***"]; //创建数组
document.write(arr.length+"<br>"); //显示数组长度
for(var k=0;k<arr.length;k++)
{
document.write(arr[k]+"<br/>");
}
</script>
</head>
<body>
</body>
</html>
各位大大,这里这个for循环怎么不好使呀?有什么问题吗?