标签:
var shu={name:‘张三‘,age:20,gender:‘男‘};
console.log(shu);
function transform(obj) {
var arr = [];
for ( var item in obj) {
arr.push(obj[item]);
}
return arr;
}
var test1=transform(shu);
console.log(test1);
标签:
原文地址:http://www.cnblogs.com/cx709452428/p/5790031.html