cookie存储json

来源:互联网 发布:数据库系统实现 斯坦福 编辑:程序博客网 时间:2024/05/22 18:22
</pre><pre name="code" class="javascript"><pre name="code" class="html"><script src="../mall/script/json2.js" type="text/javascript"></script> 
var indexBusData = {"fromAreaJP" : fromAreaJP,"fromAreaCode" : fromAreaCode,"fromSiteCode" : fromSiteCode,"toAreaName" : toAreaName,"toAreaCode" : toAreaCode,"toSiteCode" : toSiteCode,"rideDate" : rideDate};jQuery.cookie("indexBusData", JSON.stringify(indexBusData), {path: '/'});

var busData = JSON.parse($.cookie("busData"));


0 0
原创粉丝点击