Vue之判断对象是否为空的方法

1.

JSON.stringify(xxx)=='{}'

2.

Object.keys(xxx).length==0

验证结果如下:

原文地址:https://www.cnblogs.com/ailanlan/p/12069402.html