Home  >  Q&A  >  body text

javascript - How to view console information on H5 page?

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?

世界只因有你世界只因有你2689 days ago984

reply all(5)I'll reply

  • 阿神

    阿神2017-06-30 09:56:59

    Use vConsole.

    reply
    0
  • 阿神

    阿神2017-06-30 09:56:59

    1. v-console

    2. fiddler has a rosin plug-in

    reply
    0
  • PHP中文网

    PHP中文网2017-06-30 09:56:59

    Use a library like console.js

    reply
    0
  • 漂亮男人

    漂亮男人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.

    reply
    0
  • 世界只因有你

    世界只因有你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

    reply
    0
  • Cancelreply