search

Home  >  Q&A  >  body text

javascript - Problems with WeChat development website.

Our website can only be opened in WeChat, or in WeChat developer tools.

Every time you modify a page, you must submit it to SVN. Then refresh in the developer tools to see the effect. Too much trouble.

How do you develop on WeChat?

Is there any way to debug locally?

I used the developer tools to open the local one and got a white screen.

黄舟黄舟2775 days ago889

reply all(7)I'll reply

  • 世界只因有你

    世界只因有你2017-05-19 10:30:46

    The website can be opened in WeChat or in WeChat developer tools, so you can verify and debug it

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:30:46

    The website developed for WeChat is not very different from an ordinary web website, and why does it require svn submission to see the effect? Can't I debug it locally to see the effect?

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-19 10:30:46

    1. Build a browser with the same core as WeChat.
    2. Debug the static page effect locally.
    3. Upload to the server side.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-19 10:30:46

    Write an automation with gulp, open a local server, and then open the webpage in the WeChat developer tools. Moreover, the automation written by gulp can also help you refresh the page every time you make a modification

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-19 10:30:46

    WeChat developer tools allow you to view web page effects in real time.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-19 10:30:46

    Why is the screen white? You need to comment out the part of the code that caused the screen to appear blank. After the changes are completed, submit it to WeChat and then remove the comments

    //------------------------------------
    Make a port forwarding so that the public network can also Just access your local server. This was also the case for me before. To receive callbacks from WeChat payment, I modified it locally and then uploaded it to the server for testing again. Big trouble, ngrok
    In the end I used this https://www.ngrok.cc/, it’s a fool’s errand to use. However, the free tunnel delay is close to 5 seconds.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-19 10:30:46

    Use WeChat developer tools

    reply
    0
  • Cancelreply