javascript - Problems with WeChat development website.
黄舟
黄舟 2017-05-19 10:28:46
0
7
655

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.

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (7)
世界只因有你

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

    给我你的怀抱

    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?

      phpcn_u1582

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

        伊谢尔伦

        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

          曾经蜡笔没有小新

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

            習慣沉默

            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.

              仅有的幸福

              Use WeChat developer tools

                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!