if(Object.keys(that.allList).length==0){
console.log('空对象');
}else{
console.log('非空对象');
}
判断一个对象是否为空
最新推荐文章于 2024-02-27 16:10:07 发布
if(Object.keys(that.allList).length==0){
console.log('空对象');
}else{
console.log('非空对象');
}