- 将手机连接到PC的同一网络
- 用手机访问PC提供的HTTP服务
-
log大法调试
1)由于手机没有console.log(),所以我们用alert()调试
2)由于手机没有console,所以我们自己造一个console(比如腾讯的vconsole)
3)监听window.onerror有奇效(页面的任何脚本加载出错时调用)。劫持window.onerror事件:window.onerror=function(message,file,row){alert(message);alert(file);alert(row);}
页面在PC上没有问题,在手机上有问题,情况之一:
使用了手机不支持的语法












网友评论