如何在手机上调试

1.手机和电脑处于同一个wifi
2.在电脑上启动一个http server

npm i -g node-static
static --host-address=0.0.0.0

3.找到电脑的局域网IP,访问列如:http://192.168.5.14:8080/index.html
4.边预览边改代码

css:border大法
JS:alert大法/console.log大法

手机上没有console.log 方法,做了个console.log 方法



手机上就可以使用console.log方法了。

你可能感兴趣的:(如何在手机上调试)