Code Monkey home page Code Monkey logo

Comments (4)

hite avatar hite commented on August 16, 2024 1

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

from apphost.

datafu avatar datafu commented on August 16, 2024

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

from apphost.

hite avatar hite commented on August 16, 2024
  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 命令,退出后,再进来。

你按照我的步骤再试试

from apphost.

Hoikiiz avatar Hoikiiz commented on August 16, 2024

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

👍

from apphost.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.