js 对象转数组 var arr = [] for (var i in object) { arr.push(object[i]); //属性 //arr.push(object[i]); //值 } console.log(arr);