1、序列化
将json对象转为字符串:
JSON.stringify(jsonObj)
2、反序列化
var jsonObj = eval("(" + jsonstring + ")");
posted on 2015-01-13 22:53 左直拳 阅读(147) 评论(0) 编辑 收藏 举报