标签:制造 dom key ted UNC ber ret number ==
function createData(obj,num){
var list=[];
for(var i=1;i<=num;i++){
var newObj={};
for(var key in obj){
if(obj[key]=="number"){
newObj[key]=i
}else{
newObj[key]=Math.round(Math.random()*1000000)
}
}
list.push(newObj)
}
return list;
}
标签:制造 dom key ted UNC ber ret number ==
原文地址:https://www.cnblogs.com/liuhao-web/p/9627672.html