json 对象的文本格式指的是将json对象通过 JSON.stringify() 转成json字符串?如果是的话,那就是不一定一样比如一个对象: var a = { b:1, c:2, f: function(){ console.log('hello') } } 其中 { b:1, c:2, f: function(){ console.log('hello') } } 是对象字面量但是JSON.stringify(a)的结果为'{"b":1,"c":2}'
json 对象的文本格式指的是将json对象通过 JSON.stringify() 转成json字符串?
如果是的话,那就是不一定一样
比如一个对象:
其中
是对象字面量
但是JSON.stringify(a)的结果为'{"b":1,"c":2}'