Determine whether a variable is null objects

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

 

Guess you like

Origin www.cnblogs.com/kaiqinzhang/p/10937730.html