javascript - How to view console information on H5 page?
世界只因有你
世界只因有你 2017-06-30 09:54:59
0
5
950

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?

世界只因有你
世界只因有你

reply all(5)
阿神

Use vConsole.

阿神
  1. v-console

  2. fiddler has a rosin plug-in

洪涛

Use a library like console.js

漂亮男人

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.

世界只因有你

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!