<script>
var i;
var cars = new Array();
cars[0] = "Saab";
cars[1] = "Volvo";
cars[2] = "BMW";
cars[3] = "";
for (i=0;i<cars.length;i++)
{
if (cars[i]== ""){
cars[i] = "BMWree"};
document.write(cars[i] + "<br>");
}
</script>
分类:JavaScript
标签:
评论已关闭!