I am usually used to using the console to debug js, and the alert on the mobile phone is always not allowed to play. When debugging an H5 page, how can I check the console information on the mobile phone?
漂亮男人2017-06-30 09:56:59
Set the mobile proxy, and then use the tool Fiddle on the PC side to intercept the request. Or the simplest way, use alert(JSON.stringify(obj)). Set up a websocket service on your PC, add websocket debugging logic when debugging on the mobile phone, establish a websocket connection, and transmit the data that needs to be consoled on the mobile phone to the server.
世界只因有你2017-06-30 09:56:59
Let’s talk about a method that is not universal, which means that although this method is available, it cannot work on all browsers on mobile phones:
1) Next chrome browser on android phone
2) Open the chrome browser on your computer and enter: chrome://inspect
3) Connect the phone with a data cable, turn on the developer mode, and then allow debugging via the data cable
4) Then you can see the page to be debugged on the inspect page.
But you need a vpn. . . .
You can use this method as a reference