当前位置:网站首页>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
边栏推荐
- 关于BRAM IP复位的优先级
- Relationship between mongodb documents
- Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage
- Ros2 topic [01]: installing ros2 on win10
- Sort and projection
- [C language] merge sort
- 信息学奥赛一本通 1340:【例3-5】扩展二叉树
- 炒股开户最低佣金,低佣金开户去哪里手机上开户安全吗
- 1、强化学习基础知识点
- Schema and model
猜你喜欢

小程序全局配置

实操演示:产研团队如何高效构建需求工作流?

National Eye Care Education Conference, 2022 the Fourth Beijing International Youth eye health industry exhibition

Leetcode(695)——岛屿的最大面积

欢迎来战,赢取丰厚奖金:Code Golf 代码高尔夫挑战赛正式启动

CVPR 2022 | common 3D damage and data enhancement

死信队列入门(两个消费者,一个生产者)
![[quick start to digital IC Verification] 8. Typical circuits in digital ICs and their corresponding Verilog description methods](/img/3a/7eaff0bf819c129b4f866388e57b87.png)
[quick start to digital IC Verification] 8. Typical circuits in digital ICs and their corresponding Verilog description methods

Practical demonstration: how can the production research team efficiently build the requirements workflow?

14、Transformer--VIT TNT BETR
随机推荐
When JS method passes long type ID value, precision loss will occur
Ros2 topic [01]: installing ros2 on win10
Codeforces Round #804 (Div. 2) - A, B, C
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
鸿蒙系统控制LED的实现方法之经典
信息学奥赛一本通 1339:【例3-4】求后序遍历 | 洛谷 P1827 [USACO3.4] 美国血统 American Heritage
sun.misc.BASE64Encoder报错解决方法[通俗易懂]
[quick start of Digital IC Verification] 9. Finite state machine (FSM) necessary for Verilog RTL design
Is it safe for Galaxy Securities to open an account online?
Scala basics [HelloWorld code parsing, variables and identifiers]
中金财富在网上开户安全吗?
Mysql频繁操作出现锁表问题
Leetcode skimming: binary tree 17 (construct binary tree from middle order and post order traversal sequence)
Oracle tablespace management
【数字IC验证快速入门】6、Questasim 快速上手使用(以全加器设计与验证为例)
How to select the Block Editor? Impression notes verse, notation, flowus
小程序代码的构成
National Eye Care Education Conference, 2022 the Fourth Beijing International Youth eye health industry exhibition
基金网上开户安全吗?去哪里开,可以拿到低佣金?
About the priority of Bram IP reset