判断一个变量是否为空对象

if(JSON.stringify(value) === "{}"){
        console.log(value+"为空对象")

猜你喜欢

转载自www.cnblogs.com/kaiqinzhang/p/10937730.html