设置cookie
var obj = [
{"name":"Tom","age":13},
{"name":"Jack","age":14},
{"name":"Mary","age":16},
]
var objString = JSON.stringify(obj); //JSON 数据转化成字符串
读取cookie
var myCookie = $.cookie('myCookie');
var newObject = JSON.parse(myCookie); //字符串转化成JSON数据