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

能在weiview打开么? #32

Closed
wuxingjiang opened this issue Jun 7, 2016 · 12 comments
Closed

能在weiview打开么? #32

wuxingjiang opened this issue Jun 7, 2016 · 12 comments

Comments

@wuxingjiang
Copy link

No description provided.

@Maizify
Copy link
Collaborator

Maizify commented Jun 7, 2016

只要是网页,都可以加载 vConsole。

@wuxingjiang
Copy link
Author

在webview页面需要app做什么配置么?出现了vconsole按钮但是点上去没反应。

@Maizify
Copy link
Collaborator

Maizify commented Jun 7, 2016

不需要做什么配置,按钮绑定的是 click 事件,理论上点击后就会弹出面板。按钮现在可以拖拽位置吗?

@wuxingjiang
Copy link
Author

不能。没任何反应,在原生浏览器上是可以的,

@Maizify
Copy link
Collaborator

Maizify commented Jun 7, 2016

是 iOS 还是 Android 的 webview 呢?可否连到电脑看看控制台有无报错信息?

@wuxingjiang
Copy link
Author

Android 的我试试看有无报错

@wuxingjiang
Copy link
Author

报错了
image

@Maizify
Copy link
Collaborator

Maizify commented Jun 7, 2016

OK,明白了,localStorage 在这个 webview 被阉割掉了,已知问题,下一个版本会修复哈。
临时解决办法是,在 vconsole.min.js 中,搜索 localStorage,将其所在的两个花括号内的内容先删掉:
e="vConsole_"+e,localStorage.setItem(e,t)
return e="vConsole_"+e,localStorage.getItem(e)

@wuxingjiang
Copy link
Author

OK。不会影响功能吧

@Maizify
Copy link
Collaborator

Maizify commented Jun 7, 2016

不影响主要功能,只是记不住按钮拖拽的位置而已。

@wuxingjiang
Copy link
Author

好的,谢谢。

@Maizify
Copy link
Collaborator

Maizify commented Jun 16, 2016

v2.0.1已修复。

@Maizify Maizify closed this as completed Jun 16, 2016
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