Ask about the operation of array objects

this issue has been resolved

let list=[
    {name:"",age:"20"}
]

let opt=[]

 list.forEach((item)=>{
                for(let key in item){
                    opt.push({values:key,label:item[key]})
                }
              });
              
           let opt=[{values:"name",label:""}{values:"age",label:"20"}|]
Mar.02,2021

let options = [];
newOpt.map((item,i)=>{
    for(let key in item){
        item.hasOwnProperty(key) && options.push({
            value:key,label:item[key]
        })
    }
})

let newOpt = [{name: '',hh: ''}]
let options = []
let keys = Object.keys(newOpt[0])
keys.forEach((item,index) => {
    //console.log(newOpt[0][item])
    /**/
    options[index] = {}
    options[index].values = item
    options[index].label = newOpt[0][item]
})
console.log(options)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31e22-2bdb1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31e22-2bdb1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?