1.
JSON.stringify(xxx)==‘{}‘
2.
Object.keys(xxx).length==0
验证结果如下:
Vue之判断对象是否为空的方法
原文:https://www.cnblogs.com/ailanlan/p/12069402.html