WeChat public account

Public account development and debugging

Debugging with the x5 kernel

  • Enter: http://debugtbs.qq.com in the WeChat chat interface and click to open the interface of x5 kernel debugging configuration;
  • If there is an error prompting you to turn on the x5 kernel , enter: http://debugmm.qq.com/?forcex5=true and click on the WeChat chat interface to turn on the x5 kernel ;
  • If the activation is successful, go back to the first step: enter: http://debugtbs.qq.com in the WeChat chat interface and click to open the x5 kernel debugging configuration interface;
  • If the opening fails (for example, the prompt: switching the x5 kernel is not supported ), you can only use the debugging method of the xweb kernel;

Debugging with the xweb kernel

xweb currently does not support enabling vConsole mode debugging, only real machine debugging

  1. http://debugxweb.qq.com/?inspector=true
  2. https://developer.chrome.com/docs/devtools/remote-debugging/

other

window.location.href is invalid in WeChat browser

Just add a random number or a timestamp to the URL that needs to be redirected;

 window.location.href = 'https://example.com?v=' + (new Date().getTime());window.location.href = 'https://example.com?v=' + Math.random();

This article is reprinted from https://www.wujingquan.com/posts/f66864f1.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment