1.const data = obj;原状 console.log(data) // [object, object] const data = JSON.stringify(obj); console.log(data) // "{a:1,b:2}" console.log(JSON.parse(data)) // {a:1,b:2}