-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
微信浏览器默认初始化面板数量有问题 #20
Comments
面板初始化有问题具体是哪个面板,Resources? |
刚刚更新了图,只有 sources, info, snippets, features, setting |
init的时候传入tool参数禁用resources面板试下:['console', 'network'...] |
try {
require('eruda').init({
tool:['console', 'elements', 'network', 'sources', 'info', 'snippets', 'features']
})
} catch (e) {
alert(e)
} 确实禁用掉 resources 就正常了 感谢~ |
目测获取localStorage或sessionStorage的值时出错了,可以的话能否在console里贴下下面的代码看结果是什么吗? JSON.parse(JSON.stringify(localStorage));
JSON.parse(JSON.stringify(sessionStorage)); |
奇怪,没看出什么问题,我做下保护试试有没有效。这里传文件不方便,可以的话加下Q群:595858210 |
surunzi
added a commit
that referenced
this issue
Mar 3, 2017
localStorage.constructor被object赋值导致字符串操作时出现错误,执行前检查下类型合法性即可。 |
学习了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alert 出来信息是 TypeError: str.slice is not a function. (In 'str.slice(0, len'), 'str.slice' is undefined)
系统:iOS 9.3.5
微信:6.5.5(UIwebview)
The text was updated successfully, but these errors were encountered: