<!DOCTYPE html><html><body><script>function seven(){cars=["BMW","Volvo","Saab","Ford"];for (var i=0;i<cars.length;i++){document.getElementById("seven7").innerHTML=cars[i]+"<br>";}}</script><button onclick="seven()">點擊</button><p id="seven7"></p></body></html>
為什么不能正常輸出數(shù)組
車水
2018-05-06 14:21:31