mini_program
  • Introduction
  • Miscellaneous 杂项
  • editor shortcuts 微信web开发者工具快捷键
  • syntax
    • js
    • json
    • wxml
    • wxss
  • create page
Powered by GitBook
On this page

Was this helpful?

create page

创建步骤

  1. Pages 下创建目录,eg: hello

  2. 创建wxml, hello目录下创建:hi.wxml

  3. hi.wxml里添加相应内容

  4. 创建wxss, hello目录下创建wxml同文件名:hi.wxss

  5. 创建js, hello目录下创建同名文件: hi.js

  6. 根目录下app.json里把新建页引入进去,即可使用

注: 目录与页名可不同,但wxml wxss js的文件名一致为同一作用域。

Previouswxss

Last updated 5 years ago

Was this helpful?