当前位置:网站首页>Applet project structure
Applet project structure
2022-07-05 20:26:00 【'wx】
Each page consists of 4 It consists of three basic files , Namely :
1..js file ( Script file of the page , Store the data of the page 、 Event handling functions, etc )
2..json file ( The configuration file of the current page , Configure the appearance of the window 、 Performance, etc. )
3.wxml file ( The template structure file of the page , Be similar to html file )
4.wxss file ( The style sheet file of the current page , Be similar to css)
1.app.json
{
"pages":[
"pages/home/home",
"pages/message/message",
"pages/contact/contact",
"pages/info/info"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "Weixin",
"navigationBarTextStyle":"black"
},
"style": "v2",
"sitemapLocation": "sitemap.json",
"usingComponents": {
"my_test11":"/components/test/test",
"my_test2":"/components/test2/test2",
"my_test3":"/components/test3/test3",
"my_test4":"/components/test4/test4"
}
}
4 Configuration item functions :
1.pages: Used to record the path of all pages of the current applet
2.window: Globally define the page background color of the applet , Text color, etc
3.style: Globally define the style version used by the applet component
4.sitemaoLocation: Used to indicate sitemap.json The location of
2.project.config.json file ( Used to record our personalized configuration of applet development tools )
setting The configuration related to compilation is saved in
projectname The project name is saved in
appid The account number of the applet is saved in the ID
3.sitemap.json file ( Configure whether the applet page allows wechat index )
边栏推荐
- Leetcode skimming: binary tree 10 (number of nodes of a complete binary tree)
- document方法
- About the priority of Bram IP reset
- CCPC 2021威海 - G. Shinyruo and KFC(组合数,小技巧)
- 【数字IC验证快速入门】3、数字IC设计全流程介绍
- Codeforces Round #804 (Div. 2) - A, B, C
- 怎么挑选好的外盘平台,安全正规的?
- mongodb基操的练习
- Leetcode (695) - the largest area of an island
- Leetcode(695)——岛屿的最大面积
猜你喜欢
基础篇——配置文件解析
CTF逆向基础
Leetcode brush question: binary tree 14 (sum of left leaves)
Ros2 topic [01]: installing ros2 on win10
14、Transformer--VIT TNT BETR
小程序事件绑定
Scala basics [HelloWorld code parsing, variables and identifiers]
欢迎来战,赢取丰厚奖金:Code Golf 代码高尔夫挑战赛正式启动
Leetcode: binary tree 15 (find the value in the lower left corner of the tree)
【数字IC验证快速入门】6、Questasim 快速上手使用(以全加器设计与验证为例)
随机推荐
关于BRAM IP复位的优先级
14、Transformer--VIT TNT BETR
信息学奥赛一本通 1340:【例3-5】扩展二叉树
Usaco3.4 "broken Gong rock" band raucous rockers - DP
港股将迎“最牛十元店“,名创优品能借IPO突围?
How to retrieve the root password of MySQL if you forget it
Schema和Model
document方法
1. Strengthen learning basic knowledge points
【数字IC验证快速入门】7、验证岗位中必备的数字电路基础知识(含常见面试题)
E. Singhal and Numbers(质因数分解)
Codeforces Round #804 (Div. 2) - A, B, C
2022北京眼睛健康用品展,护眼产品展,中国眼博会11月举办
【数字IC验证快速入门】8、数字IC中的典型电路及其对应的Verilog描述方法
Dry goods navigation in this quarter | Q2 2022
DP: tree DP
USACO3.4 “破锣摇滚”乐队 Raucous Rockers - DP
[C language] three implementations of quick sorting and optimization details
Document method
MySql的root密码忘记该怎么找回