We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
场景:多项目共用storage,有些引插件,有些原生写法 问题:set字符串形式的会带有引号,不能使用原生localStorage.getItem获取
function serialize(val) { return typeof val === 'string' ? val : JSON.stringify(val); }
The text was updated successfully, but these errors were encountered:
这个问题是不打算修复了吗?
Sorry, something went wrong.
感觉这个包就是为了方便处理对象类型的数据存储与获取吧,当然也可以处理基本数据类型。没考虑兼容性(或者说没必要)
如果要兼容的话可以自己实现啊,都是localStorage的api调用
No branches or pull requests
场景:多项目共用storage,有些引插件,有些原生写法
问题:set字符串形式的会带有引号,不能使用原生localStorage.getItem获取
The text was updated successfully, but these errors were encountered: