-
Notifications
You must be signed in to change notification settings - Fork 433
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
使用报错:TypeError: logs.unshift is not a function #2
Comments
@huike1989 确实是个 bug,我正在排查中 |
@huike1989 已修复,需要你手工清除下浏览器 localStorage 缓存确保数据没问题。 |
已经更新了吗?还是报错的? |
@moxiaobei2 你这个报错应该是你的 json 文件格式错了,导致文件无法解析,我刚才改进了错误提示信息。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
log 存储在localstorage。 在 app.js 中
刷新页面的时候
var logs = wx.getStorageSync('logs') || [];会报错
是不是需要JSON.parse 下呢?
The text was updated successfully, but these errors were encountered: