数组的定义:
var a = new Array();
lenght = 数组的长度,一般不写;
数组赋值:
a[0] = 0;
a[1] = 1;
a[2] = 2;
a[3] = 3;
a[4] = 4.4;
a[5] = "嘿嘿"
可以赋值数字,小数,字符
来源: