分解对象
var obj = {
张三: [20, 50, 60],
李四: [88, 21, 33],
王五: [99, 23, 41]
};
function splitObj(obj) {
var A = [],
B = [],
C = [];
let name = Object.keys(obj)
var arr = Object.values(obj)
for(let i = 0 ; i < arr.length; i ++) {
A.push(arr[i][0]);
B.push(arr[i][1]);
C.push(arr[i][2]);
}
console.log(name)
console.log(A)
console.log(B)
console.log(C)
}
遇到挫败,要学会左手温暖右手,相信明天会更好,after all,tomorrow is another day,满怀希望的活下去,不放弃学习,不放弃努力,forever youthful,forever weeping!!