判断对象是否为空

小记一下:
Object.keys(this.currentRole).length == 0
原文地址:https://www.cnblogs.com/wqing/p/11936682.html