<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> //我们可以用for of 遍历数组: var arr=[1,2,3,4,5]; for(a of arr){ console.log(a); } </script> </body> </html>