Basic understanding of small program development

Mini Program Development Process

Registering Mini Programs
Binding Developers
Activating Tencent Cloud
Downloading and Installing Tools
Tencent Cloud Environment Deployment

Mini Program Directory Structure

Small program development, responsible for page display, event interaction, page logic switching, data storage and network calls.

The applet directory structure contains three files starting with app (app.js, app.json, app.wxss)

app.js is the global js. app.json is the global configuration. app.wxss is the global style.

{
  "pages":[
    "pages/logs/logs",
    "pages/index/index"
  ],
  "window":{
    "backgroundTextStyle":"light",
    "navigationBarBackgroundColor": "#fff",
    "navigationBarTitleText": "WeChat",
    "navigationBarTextStyle":"black"
  }
}

For page registration in app.json, the first one is the home page by default.

The applet also includes pages and utils.

In phpstorm, add WeChat applet recognition

Support for .wxml files

Configuration of .wxss

Alt+Enter

Just remove this item.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325257353&siteId=291194637