59.移动端调试html

1.安装weinre  

npm install -g weinre

2.启动weinre  

weinre --httpPort 8080 --boundHost -all-

3.在pc端浏览器中输入:localhost:8080

4.点击 debug client user interface 后面的链接

5.在需要调试的页面内部加入

<script src="http://localhost:8080/target/target-script-min.js#anonymous"></script>

6.在移动端浏览器中打开需要调试的页面(使用http-server链接的本地服务,所以我只要在浏览器中输入我pc端电脑的ip地址和端口号就可以了)

 

posted @ 2018-03-01 15:45  famCc  阅读(229)  评论(0编辑  收藏  举报