Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何面对LS的5M限制? #13

Open
ian000 opened this issue Feb 15, 2016 · 1 comment
Open

如何面对LS的5M限制? #13

ian000 opened this issue Feb 15, 2016 · 1 comment

Comments

@ian000
Copy link

ian000 commented Feb 15, 2016

如何面对LS的5M限制?

@luyongfugx
Copy link
Contributor

不应该放这么多东西到LS里,现在有写异常回调,可以在回调里面调用清理机制:
//写本地存储异常回调,将脚本内容写入本地存储
//出现异常的时候调用,用来提供给业务清理本地存储
//,storekey表示写如的key
'storeExFunc':function(storeKey){
console.log('set store item '+storeKey+' exception');
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants