After the mobile project is done on the pc, some unknown bugs may appear in the test directly on the mobile phone, and it is a waste of time to modify it back and forth; so we can use the mobile phone to access the local ip address;
Browse the finished project directly in the form of a mobile web page; package and install it after the test is no problem, reducing our test intensity;
The first step: set up the environment locally and complete the project; it can be accessed; as shown in the figure; the local address is localhost or 127.0.0.1;
2. View the local ip and open the command line tool window+R or click on the lower left corner to find and run, enter cmd to open the command line tool, enter ipconfig, and the following interface appears;
The following figure is revisited: the same can be displayed;
3. Key point: When the mobile phone is connected to wifi, remember that the computer and the mobile phone must be connected to the same wifi; otherwise, the request will not be available;
The website can be browsed on the mobile phone by visiting the website;
*****If an error is also displayed, turn off the computer firewall while accessing