JS 将两个数组转化为二维数组
function arrayToTwoDimensional(arr1,arr2) {
var arr = new Array();
for (var i = 0; i < arr1.length; i++) {
arr.push([arr1[i],arr2[i]]);
}
return arr;
}
function arrayToTwoDimensional(arr1,arr2) {
var arr = new Array();
for (var i = 0; i < arr1.length; i++) {
arr.push([arr1[i],arr2[i]]);
}
return arr;
}