let obj = {}
if(Object.keys(obj).length==0){
    console.log('空对象')
}else{
    console.log('非空对象')
}
Last Updated:
Contributors: pengrengui