数组相关
var codes = new Array( ); //创建数组codes.length //数组长度
动态插入数组
codes.push(value);
原生JS常用代码汇总
原文:http://www.cnblogs.com/roluce/p/6035193.html