<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      var arr=[12,13,15];
    //             当前值  下标   所在数组
       arr.forEach((value,index,arrs)=>{
           console.log(index+">>>>>>>"+value+"  "+arrs);
       })
    </script>
  </head>
  <body>
  </body>
</html>

相关文章:

  • 2022-01-12
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
猜你喜欢
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
相关资源
相似解决方案