1.字符串
存:egret.localStorage.setItem('test','string');
取:egret.localStorage.getItem('test');
删:egret.localStorage.removeItem('test');
清空所有:egret.localStorage.clear();
2.字典
存:egret.localStorage.setItem('test', JSON.stringify(data));
取:var data = JSON.parse(<string>egret.localStorage.getItem('test'));
删:egret.localStorage.removeItem('test');
清空所有:egret.localStorage.clear();