var a = new Array( ); a[0] = 1.2; a[1] = "JavaScript"; a[2] = true; a[3] = { x:1, y:3 }; //以下内容同下: var a = new Array(1.2, "JavaScript", true, { x:1, y:3 }); var arrays = new Array('Transformers','Transformers2','Avatar'); var arrays = ['Transformers','Transformers2','Avatar'];