JavaScript判断是否是空对象

Object.keys(obj).length === 0 && obj.constructor === Object

猜你喜欢

转载自blog.csdn.net/m0_57033755/article/details/131260926