使用chrome浏览器调试移动端网页(非模拟访问)

1. 使用数据线连接手机与电脑

2. 打开手机调试模式

  参考:http://jingyan.baidu.com/article/f79b7cb35ada4d9145023e63.html

  本人使用的miui8系统,参考:http://jingyan.baidu.com/article/636f38bb7912cbd6b8461025.html

  当手机弹出是否允许调试时,一定得选择允许调试

3. F12打开chrome控制台,依次选择如下图所示(也可在chrome地址栏中输入chrome://inspect/#devices访问):

  

4. 连接成功如图所示:

点击上图中的Inspect按钮即可开启调试手机网页,如下图:

 

 其中注意事项:

1. 地址栏输入chrome://inspect/一定不要在隐私模式中输入,否则无效

2. 点击inspect按钮页面空白,加载不成功处理办法:

在hosts文件(位置C:\Windows\System32\drivers\etc\hosts)中添加

61.91.161.217    chrome-devtools-frontend.appspot.com
61.91.161.217    chrometophone.appspot.com

 

inspect

posted @ 2017-07-03 16:59  极·简  Views(6409)  Comments(0Edit  收藏  举报