Small program

folder

  1. Pages: put pages, each page separately put a folder
    • Index.js: corresponding page script file, including data, event handlers, life cycle, and so on
    • Json: configuration file of the current INDEX page, such as the page appearance
    • Index. WXML: Current page template structure
    • Index. WXSS: Current page style sheet
  2. Utils: tools folder
  3. App.js: A logical file in the entire project that can be used to register applets, bind callback functions, and so on
  4. Json: public configuration file, including file page path, window presentation…
  5. App.wxss: Common style sheets
  6. Project.config. json: project configuration file used to record applets development tool personalization configuration
  7. Sitemap. json: Configures whether the applets and their pages are allowed to be indexed by wechat

Question 1: What does a small program page consist of?

  • Four files:.wxml, WXSS, JS, json
  • These four files should be placed in the same folder under the Pages folder