访问整个数组访问整个数组<!DOCTYPE html><html><body> <h1>JavaScript 数组</h1> <p id="demo"></p> <script>var cars = ["Audi", "BMW", "porsche"];document.getElementById("demo").innerHTML = cars;</script> </body></html>