formList: {
userName: 'zhenzhen',
zhiWei: '前端开发',
companyName: '安安娱乐',
age: 23
}
let values = Object.values(formList)
console.log(values) //["zhenzhen", "前端开发", "安安娱乐", 23]
对象转数组
最新推荐文章于 2023-07-25 20:17:44 发布
formList: {
userName: 'zhenzhen',
zhiWei: '前端开发',
companyName: '安安娱乐',
age: 23
}
let values = Object.values(formList)
console.log(values) //["zhenzhen", "前端开发", "安安娱乐", 23]