Weinre this method.
1. First you want to install Nodejs, to be installed in a low version, the latest version of the installed weinre will not fit. Here to a
Https://nodejs.org/dist/v0.10.20/node-v0.10.20-x86.msi
2. Then NPM commands
NPM install-g weinre
3. Running Wernre
Weinre--httpport 8081--bounhost-all-
Enter the localhost:8081 above in the browser
4. You will see an interface like this
Copy a section inside the red box and insert it into the HTML page you want to debug.
5. Next find your weinre's installation directory,
Such as:
Create a new www directory,
Put the Debug page in this WWW directory,
Mobile Access: localhost:8081/www/index.html
Another way to debug:
Installing anywhere is simpler and easier than the above.
NPM Install Anywhere-g
Once installed, the cmd command enters the directory where you want to debug the HTML page, running anywhere
How to debug HTML pages on a mobile side