谁能给我一个带有多维输入数组的 JavaScript 示例/示例?希望您能提供帮助,因为我还是 JavaScript 新手。
像这样:
var cubes = [[1, 2, 3],[4, 5, 6],[7, 8, 9]];
output : [1,4,7],
[1,4,8],
[1,4,9],
[1,5,7],
[1,5,8],
[1,5,9],
[1,6,7],
[1,6,8],
[1,6,8],
.........
.........
[3,6,7],
[3,6,8],
[3,6,9]
谢谢