?? 5-4 數(shù)組對象方法應(yīng)用示例.htm
字號:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312" />
<title>5-4 數(shù)組對象方法應(yīng)用示例</title>
</head>
<body style="overflow:auto;">
<div style="font-size:12px; font-weight:bold; color:white; font-family:Arial, 宋體; background-color:#6090DA; padding:4px 10px;">
<script type="text/javascript">
var user_inputs = new Array();
var str;
while(str=prompt("請輸入任意內(nèi)容:",""))user_inputs.push(str);
user_inputs.sort();
document.write("你輸入的內(nèi)容排序后的結(jié)果為:<br>"+user_inputs.join("<br>"));
</script>
</div>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -