Preview the webpage developed on the computer terminal on the mobile terminal

The H5 project on the mobile phone developed on the computer, if you want to preview the effect on the mobile phone, first obtain the IP address of the computer, in the start--"cmd pop-up terminal command window, enter ipconfig, press Enter, and you can get the IP address:

Open the locally developed webpage in the browser, copy the URL, and replace the green part with the local IP address, that is, replace http://127.0.0.1:5500/phone/dingxx/index.html with http ://192.168 .1.106:5500/phone/dingxxx/index.html can be accessed on the mobile phone

ps: The computer and mobile phone are under the same LAN.

Guess you like

Origin blog.csdn.net/spring_007_999/article/details/129285117