当前位置:网站首页>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 )
边栏推荐
- PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
- 怎么挑选好的外盘平台,安全正规的?
- Unity编辑器扩展 UI控件篇
- Schema and model
- B站UP搭建世界首个纯红石神经网络、基于深度学习动作识别的色情检测、陈天奇《机器学编译MLC》课程进展、AI前沿论文 | ShowMeAI资讯日报 #07.05
- Guidelines for application of Shenzhen green and low carbon industry support plan in 2023
- 常用的视图容器类组件
- 19 mongoose modularization
- ROS2专题【01】:win10上安装ROS2
- 微信小程序正则表达式提取链接
猜你喜欢
Leetcode skimming: binary tree 16 (path sum)
Enter the parallel world
【数字IC验证快速入门】6、Questasim 快速上手使用(以全加器设计与验证为例)
Leetcode brush question: binary tree 14 (sum of left leaves)
National Eye Care Education Conference, 2022 the Fourth Beijing International Youth eye health industry exhibition
Scala basics [HelloWorld code parsing, variables and identifiers]
基础篇——配置文件解析
A way to calculate LNX
Leetcode (695) - the largest area of an island
How to form standard interface documents
随机推荐
【数字IC验证快速入门】3、数字IC设计全流程介绍
CCPC 2021威海 - G. Shinyruo and KFC(组合数,小技巧)
Y57. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (30)
Informatics Olympiad 1337: [example 3-2] word search tree | Luogu p5755 [noi2000] word search tree
Leetcode skimming: binary tree 10 (number of nodes of a complete binary tree)
kubernetes资源对象介绍及常用命令(五)-(ConfigMap&Secret)
. Net distributed transaction and landing solution
About the priority of Bram IP reset
Leetcode(347)——前 K 个高频元素
ByteDance dev better technology salon was successfully held, and we joined hands with Huatai to share our experience in improving the efficiency of web research and development
1、强化学习基础知识点
插值查找的简单理解
Informatics Olympiad 1338: [example 3-3] hospital setting | Luogu p1364 hospital setting
19 Mongoose模块化
Model method
走入并行的世界
DP: tree DP
[C language] merge sort
Leetcode brush questions: binary tree 18 (largest binary tree)
Leetcode (695) - the largest area of an island