当前位置:网站首页>Composition of applet code
Composition of applet code
2022-07-05 20:25:00 【'wx】
1.WXML Templates
WXML and HTML The difference between
(1). Different label names
HTML(div,span,img,a)
WXML(view,text,image,navigator)
(2) Attribute nodes are different
<a href="#"> Hyperlinks </a>
<navigator url="pages/home/home"></navigator>
(3) Offer something similar to vue Template syntax for
Data binding
The list of rendering
Conditions apply colours to a drawing
2.WXSS style
(1) Added rpx Unit of measure , The screen of different sizes will be converted automatically
(2) Provides global and local styles
In the root directory of the project app.wxss Will work on all applet pages
Of partial pages .wxss The style is only valid for the current page
(3)WXSS Only partial css Selectors
Class selector and id Selectors
Element selector
Union selector , Descendant selector
Pseudo class selector
3.JS Logical interaction
(1)app.js
It is the entry file of the whole applet project , By calling App() Function to start the entire applet
(2) Page .js file
Is the entry file of the page , By calling Page() Function to create and access pages
(3) ordinary .js file
It is a common function module file , Used to encapsulate public functions or properties for use by pages
边栏推荐
- [quick start of Digital IC Verification] 9. Finite state machine (FSM) necessary for Verilog RTL design
- Leetcode (695) - the largest area of an island
- 基础篇——配置文件解析
- What is PyC file
- A way to calculate LNX
- Informatics Olympiad 1337: [example 3-2] word search tree | Luogu p5755 [noi2000] word search tree
- Reinforcement learning - learning notes 4 | actor critical
- 小程序全局配置
- [quick start of Digital IC Verification] 6. Quick start of questasim (taking the design and verification of full adder as an example)
- 2022年7月4日-2022年7月10日(ue4视频教程mysql)
猜你喜欢
Guidelines for application of Shenzhen green and low carbon industry support plan in 2023
2.8、项目管理过程基础知识
Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
如何形成规范的接口文档
Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage
A solution to PHP's inability to convert strings into JSON
【数字IC验证快速入门】2、通过一个SoC项目实例,了解SoC的架构,初探数字系统设计流程
欢迎来战,赢取丰厚奖金:Code Golf 代码高尔夫挑战赛正式启动
14、Transformer--VIT TNT BETR
CTF逆向基础
随机推荐
点云文件的.dat文件读取保存
How to select the Block Editor? Impression notes verse, notation, flowus
19 mongoose modularization
2022年7月4日-2022年7月10日(ue4视频教程mysql)
National Eye Care Education Conference, 2022 the Fourth Beijing International Youth eye health industry exhibition
Leetcode skimming: binary tree 17 (construct binary tree from middle order and post order traversal sequence)
sort和投影
实操演示:产研团队如何高效构建需求工作流?
Station B up builds the world's first pure red stone neural network, pornographic detection based on deep learning action recognition, Chen Tianqi's course progress of machine science compilation MLC,
怎么挑选好的外盘平台,安全正规的?
解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接
B站UP搭建世界首个纯红石神经网络、基于深度学习动作识别的色情检测、陈天奇《机器学编译MLC》课程进展、AI前沿论文 | ShowMeAI资讯日报 #07.05
July 4, 2022 - July 10, 2022 (UE4 video tutorial MySQL)
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
Scala基础【HelloWorld代码解析,变量和标识符】
Informatics Olympiad 1337: [example 3-2] word search tree | Luogu p5755 [noi2000] word search tree
1:引文;
【数字IC验证快速入门】6、Questasim 快速上手使用(以全加器设计与验证为例)
Model method
CVPR 2022 | common 3D damage and data enhancement