var cars=new Array(); cars[0]="Audi"; cars[1]="BMW"; cars[2]="Volvo"; 或者: var cars=new Array("Audi","BMW","Volvo");