编辑代码

let data = {}

let b = (JSON.stringify(data)=='{}')
console.log(b)