JavaScript八:数组,其中有增强for循环
数组的使用率比较高,与后台交互数据时经常用到数组;数组的创建:// 数组的创建var arr1 = new Array();// 创建数组并指定长度var arr2 = new Array(5);// 创建数组并初始化var arr3 = new Array(2,5,"dd","d",8);var arr4 = [2,5,"dd","d",8]; // 简写形式var arr5 = []; 数组的遍历:var arr