convert the object to an one-dimensional array, which contains the object. The data obtained by traversing through for in is not in the right format, so it is very weak in data processing
.let str = {
activationSuccessNumber: 2,
helpSuccessNumber: 0, pv: 212,
shareNumber: 1,
uv: 1
}
let arr = []
for (var i in str) {
arr.push(str[i])
}
console.log(arr);