<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
</head>
<body>

<p>点击按钮将数组中的每个元素乘于输入框指定的值,并返回新数组。</p>
<p>最小年龄: <input type="number" ).innerHTML = numbers.map(multiplyArrayElement);
}
</script>

</body>
</html>

点击按钮,输出结果:新数组: 650,440,120,40

 

相关文章:

  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-12-09
  • 2021-12-18
  • 2022-12-23
  • 2021-09-11
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案