Entry-level development process of WeChat mini program

little bottle
Release: 2019-04-24 13:30:29
forward
5412 people have browsed it

Today, the editor will take you to learn how to make a WeChat applet. Friends who are interested must take a look. I hope you can gain something.

WeChat mini program development process:

  1. Enter the WeChat public platform and register a mini program account: https://mp.weixin.qq.com/
  2. Download WeChat developer tools. Download address: https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
  3. Create a new project. Create an empty directory where the code is stored, open the WeChat Developer Tools, select the directory, and fill in the AppID (can be found in "WeChat Public Platform->Settings->Development Settings").
  4. How the applet calls the third-party interface.
    4.1. If you want to call the interface in the mini program, you must first configure the domain name. Enter "WeChat Public Platform->Settings->Development Settings->Server Domain Name". Add the domain name you want to use.

    4.2. After adding, remember to refresh in "WeChat Development Tools->Details->Domain Name Information".

    4.3. The https certificate is verified by default in the mini program. If an error is reported when using the http path, you can check "Do not verify legal domain names" in "WeChat Development Tools->Details->Project Settings".

    4.4. Public parameter information can be configured in app.js. Such as configuring path prefix and other information. Configuration value information can be obtained through app.globalData.wallpaperBaseUrl.

    4.5. You can initiate a request through wx.request.

    4.6. The default content-type in the header is application/json. If it is a request submitted by a post form, it should be changed to application/x-www-form-urlencoded.

Related tutorials: WeChat Mini Program Video Tutorial

The above is the detailed content of Entry-level development process of WeChat mini program. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
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!