script中的代碼未生效,不知問題在哪里
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二維數(shù)組</title>
<script type="text/javascript">
? ? alert("看看");
? ? var myarr=new Array();
? ? for(var i=0,i<3,i++){
? ? ? ? myarr[i]=new Array();
? ? ? ? for(var j=0,j<6,j++){
? ? ? ? ? ? myarr[i][j]=i*j;
? ? ? ? }
? ? }
? ? document.write(myarr);
? ? document.write("結果顯示");
</script>
</head>
<body>
? ? <p>看看結果</p>
</body>
</html>
2019-08-14
2019-08-14
for循環(huán)里邊需要使用; 不能使用,