幫我找下問題所在,謝謝大家了?。?!
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>數(shù)組</title>
<script type="text/javascript">
? var arr = ['*','##',"***","&&","****","##*"];
? arr[7] = "**";
? alert("數(shù)組長度"+arr.length);//顯示數(shù)組長度
?document.write(arr[0]+<br/>);
?document.write(arr[7]+<br/>);
?document.write(arr[2]+<br/>);
?document.write(arr[4]+<br/>);//將數(shù)組內(nèi)容輸出,完成達(dá)到的效果。
</script>
</head>
<body>
</body>
</html>
2016-02-18
document.write(arr[0]+<br/>);
?document.write(arr[7]+<br/>);
?document.write(arr[2]+<br/>);
?document.write(arr[4]+<br/>);//將數(shù)組內(nèi)容輸出,完成達(dá)到的效果。
里面的<br/>要加""