1.安裝
npm -g install weinre //安裝weinre
2.啓動服務器
weinre –boundHost [hostname | ip address |-all-] –httpPort [port] //啓動weinre
3.調試
3.1 查看自己的局域無線網,並訪問(添加端口)
3.2 將target Script中的 script標籤添加到調試頁面中
3.3 在移動端打開需要調試的網頁
3.4 電腦上進入 http://193.8.104.20:8910/#anonymous即可進行調試