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

1、JSON.stringify(xxx)=='{}'
2、Object.keys(xxx).length==0

 

posted @ 2020-06-10 13:54  夏小夏吖  阅读(9712)  评论(0编辑  收藏  举报