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

求Demo #1

Open
Hoikiiz opened this issue Apr 22, 2019 · 4 comments
Open

求Demo #1

Hoikiiz opened this issue Apr 22, 2019 · 4 comments

Comments

@Hoikiiz
Copy link

Hoikiiz commented Apr 22, 2019

No description provided.

@hite
Copy link
Owner

hite commented Apr 24, 2019

@Hoikiiz demo,地址有了AppHostExample 项目,https://github.com/hite/AppHostExample
而且增加了 README.md 和 feature.md 你先看看

@datafu
Copy link

datafu commented Apr 29, 2019

6.3 使用 weinre 调试严选页面 这个功能没看懂怎么用 可以指导下吗

@hite
Copy link
Owner

hite commented Apr 29, 2019

  1. 启动自己的 weinre 服务器,比方 http://10.242.24.59:9090,需要注入的 js 路径是

You can use this script to inject the weinre target code into your web page.
http://10.242.24.59:9090/target/target-script-min.js#anonymous

  1. 启动 AppHostExample ,在演示页面点击第 3 个(因为这个页面是 http 的),到 WebView 界面。此时在 Remote Debugger (也就是 http://10.242.24.59:12345/ 页面)的命令输入框里,输入

:weinre http://10.242.24.59:9090/target/target-script-min.js#anonymous

  1. 退出“严选酒水页面”,再次“严选酒水页面”。(目的是为了让 WebView 重新初始化一次)
  2. 回到 weinre client 页面(如http://10.242.24.59:9090/client/#anonymous),就能看到可调试的链接了。

有两个关键点

  1. 必须是 http 或者 https 协议相同
  2. 在 WebView 打开的时候,执行 :weinre 命令,退出后,再进来。

你按照我的步骤再试试

@Hoikiiz
Copy link
Author

Hoikiiz commented Apr 29, 2019

@Hoikiiz demo,地址有了AppHostExample 项目,https://github.com/hite/AppHostExample
而且增加了 README.md 和 feature.md 你先看看

👍

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

3 participants