二位数组的定义并输出每项的值
1 <script type="text/javascript"> 2 var _TheArray = [["百度","拦截"],["谷歌","不拦截"],["谷歌浏览器","不拦截"]];//定义一个二维数组 3 for(var a=0;a<_TheArray.length;a++){ 4 for(var b=0;b<_TheArray[a].length;b++){ 5 console.log(_TheArray[a][b]); 6 } 7 }; 8 </script>