function obje(){
var objArr =[
{"ctime":"2019-10",
"type": ["sql注入","文件包含","跨站脚本攻击"],
data:[423,300,1651]
},
{"ctime":"2019-09",
type:["sql注入","文件包含","跨站脚本攻击"],
data:[421,360,1851]
},
{"ctime":"2019-06",
type:["sql注入","文件包含","跨站脚本攻击"],
data:[591,590,2991]
},
{"ctime":"2019-08",
type:["sql注入","文件包含","跨站脚本攻击"],
data:[191,290,2991]
},
{
"ctime":"2019-07",
type:["sql注入","文件包含","跨站脚本攻击"],
data:[291,490,2941]
}
];
var arr=[],type=[],xDate=[],flag=true,isArr=true;
var strArr =new Array();
strArr =new Array(100);
objArr.forEach(function (obj,i) {debugger
xDate.push(obj.ctime);
type = obj.type;
for(let j=0;j< type.length;j++){debugger
if(isArr){
strArr[j] =new Array();
}
console.log(obj.data[j]);
strArr[j][i]= obj.data[j];
}
isArr =false;
});
console.log(strArr,33);
}