Commit bde4c6a5 by chenjinjing

no message

parent 816bd8d7
async function lanuch() { async function lanuch() {
testArr(); testArr(4, 8);
} }
function randArray(len, min, max) { function randArray(len, min, max) {
...@@ -26,12 +26,12 @@ export function test() { ...@@ -26,12 +26,12 @@ export function test() {
} }
export function testArr() { export function testArr(x, y) {
var arr = []; var arr = [];
var n=1; for(var i = 0;i < x; i++){
for(var i = 0;i < 3; i++){
arr[i] = []; //每行有3列 arr[i] = []; //每行有3列
for(var j = 0;j < 5; j++){ arr[i][0] = "数据名称"+(i+1);
for(var j = 1;j < y; j++){
arr[i][j] = rand(10 ,100); arr[i][j] = rand(10 ,100);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment