388
602
2218
金牌会员
parse用于从一个字符串中解析出json对象,如
var str = '{"name":"huangxiaojian","age":"23"}'
结果:
JSON.parse(str)
stringify()用于从一个对象解析出字符串,如
var a = {a:1,b:2}
JSON.stringify(a)
"{"a":1,"b":2}"
使用道具 举报
本版积分规则 发表回复
|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )
GMT+8, 2024-11-23 00:21 , Processed in 0.059465 second(s), 20 queries .
Powered by Discuz! X3
© 2001-2013 Comsenz Inc.