課程
/前端開發(fā)
/JavaScript
/JavaScript進(jìn)階篇
數(shù)組圖形不會(huì)
2022-10-21
源自:JavaScript進(jìn)階篇 3-8
正在回答
<!DOCTYPE? HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>數(shù)組</title>
<script type="text/javascript">
?//創(chuàng)建數(shù)組
?
?//顯示數(shù)組長(zhǎng)度
?//將數(shù)組內(nèi)容輸出,完成達(dá)到的效果。
var? arr = new Array('*','##',"***","&&","****","##*");
? ?arr[7] = "**";
? ?alert(arr.length);
? ?document.write(arr[0]);
? ?document.write('<br />');
? ?document.write(arr[7]);
? ?document.write(arr[2]);
? ?document.write(arr[4]);
</script>
</head>
<body>
</body>
</html>
舉報(bào)
本課程從如何插入JS代碼開始,帶您進(jìn)入網(wǎng)頁動(dòng)態(tài)交互世界
2 回答javascript 中的數(shù)組
3 回答javascript 二維數(shù)組
1 回答這個(gè)Javascript的 二維數(shù)組 與Java語言的二維數(shù)組有什么區(qū)別?與Python中類似的區(qū)別呢?
2 回答javascript 數(shù)組排序sort
2 回答編程練習(xí)(JavaScript 數(shù)組)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2022-10-27
<!DOCTYPE? HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>數(shù)組</title>
<script type="text/javascript">
?//創(chuàng)建數(shù)組
?
?//顯示數(shù)組長(zhǎng)度
?
?
?//將數(shù)組內(nèi)容輸出,完成達(dá)到的效果。
var? arr = new Array('*','##',"***","&&","****","##*");
? ?arr[7] = "**";
? ?alert(arr.length);
? ?document.write(arr[0]);
? ?document.write('<br />');
? ?document.write(arr[7]);
? ?document.write('<br />');
? ?document.write(arr[2]);
? ?document.write('<br />');
? ?document.write(arr[4]);
? ?document.write('<br />');
</script>
</head>
<body>
</body>
</html>