The invention provides an H5 page local debugging method suitable for a
Hybrid App, which comprises the following steps of: 1, modifying a
router file, configuring meta attribute identifiers for routes taking the App as an entry, and performing related display through a menu; 2, a menu page is developed, and a menu configured with meta attributes is rendered; 3, environment distinguishing is carried out on the H5 project, and a
development environment and a production environment are set; 4, intercepting a
route accessing the H5 page, and performing related
processing judgment; and 5, identifying the token obtained in the step 4. By adopting the login logic for simulating the APP, when an H5 developer performs self-testing, the token can be automatically obtained without relying on a Native developer, so that the number of times of communication between the H5 developer and the Native developer during testing is reduced, the communication cost is reduced, and in the debugging process, the
workload of the H5 developer is reduced, and the debugging efficiency of the H5 developer is improved. Developers can open the menu page and randomly select and enter the page to be debugged, so that the development time is greatly saved.