Commit 1946b45c by lixinming

no message

parent 50981b75
......@@ -7,10 +7,12 @@ function rand(min,max) {
return Math.floor(Math.random()*(max-min))+min;
}
// 除了 arr[0] = ["数据名称"];这里 其他的逻辑没啥问题 这个testArr可以封装成一个方法,记得改一下名字
//有了这个方法就可以改造一下你的键值模拟数据的地方了,也就是 dataModule.ts里面的 getKeyValueModule
export function testArr(x, y, xName, yName, min, max) {
var arr = [];
for(var i = 1;i < x; i++){
arr[0] = ["数据名称"];
arr[0] = ["数据名称"];//这里每个循环都会重复赋值
arr[i] = [];
arr[i][0] = xName+i;
for(var j = 1;j < y; j++){
......@@ -20,4 +22,7 @@ export function testArr(x, y, xName, yName, min, max) {
}
}
//除了以上之外,今天的任务是:还缺少一个接口,告诉他大类型的图表,和小类型的图表对应关系,具体说明,看我电脑里的图片说明
lanuch();
\ No newline at end of file
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