json.parse() 用于从一个字符串解析出json对象
var str = '{"name":"huangzhong","age":"23"}'
json.parse(str)
stringify()用于从对象解析出字符串
var a={a:1,b:2}
json.stringify(a)
'{"a":1,"b":2}'
json.parse() 用于从一个字符串解析出json对象
var str = '{"name":"huangzhong","age":"23"}'
json.parse(str)
stringify()用于从对象解析出字符串
var a={a:1,b:2}
json.stringify(a)
'{"a":1,"b":2}'