我是 javascript 新手,我想知道我将如何回答这个问题。一直有问题,真的很令人沮丧:(。
到目前为止我有这个:
<!DOCTYPE HTML>
<html>
<head>
<title> Lab 4 - Task 2.1</title>
<script type = "text/javaScript">
function numbers()
{
var numbers = new Array();
numbers[0] = "15";
numbers[1] = "16";
numbers[2] = "17";
numbers[3] = "18";
numbers[4] = "19";
numbers[5] = "20";
numbers[6] = "21";
numbers[7] = "22";
numbers[8] = "23";
numbers[9] = "24";
numbers[10] = "25";
alert(numbers)
}
</script>
</head>
<body>
<input type="button" onclick="numbers()" value="Show alert box" />
</body>
</html>
我将如何把它放到桌子上?以及完成它要求的其他任务?