var obj = {
top250:["你好","他的"],
comingSoon:["防抖111","及时111"],
theaters:["放大镜222","防静电222"]
}
//获取对象中属性的值
var arr =[]
for(var key in obj){
arr.push(...obj[key])
var res =[];
var reg = /\d/g;
//对数组中的每一项值的过滤
arr.forEach(name=>{
var name = name.replace(reg,"");
console.log(name)
res.push({
name
})
})
console.log(res)
}
console.log(arr)