一、存储数据到本地方法一:
1、存储
var areaData = AjaxArea(config.url,"listchildmanager",user,key);
console.log(areaData);
var jsonAreaData =JSON.stringify(areaData);
// 存储json字符串
window.localStorage.setItem("AreaDatakey",jsonAreaData);
2、获取
var jsonAreaData =window.localStorage.getItem("AreaDatakey");
var areaData =JSON.parse(jsonAreaData);