调试webapp:
weinre
npm install -g weinre
1.确保手机和电脑连接在同一网段下:
2.在调试的页面中加入如下js:(ip为本机电脑ip)
<script src="http://本机电脑ip:8888/target/target-script-min.js#anonymous"></script>
3.命令行 weinre --httpPort 8888 --boundHost -all-
ionic serve —address 电脑ip 这样方便手机与电脑调试