当前位置:网站首页>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
边栏推荐
- y57.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(三十)
- - Oui. Net Distributed Transaction and Landing Solution
- Introduction to dead letter queue (two consumers, one producer)
- 银河证券在网上开户安全吗?
- C language OJ gets PE, OJ of ACM introduction~
- Leetcode brush question: binary tree 14 (sum of left leaves)
- 信息学奥赛一本通 1339:【例3-4】求后序遍历 | 洛谷 P1827 [USACO3.4] 美国血统 American Heritage
- model方法
- c语言oj得pe,ACM入门之OJ~
- 小程序项目结构
猜你喜欢
Rainbow 5.7.1 supports docking with multiple public clouds and clusters for abnormal alarms
【刷题记录】1. 两数之和
【数字IC验证快速入门】7、验证岗位中必备的数字电路基础知识(含常见面试题)
死信队列入门(两个消费者,一个生产者)
Hong Kong stocks will welcome the "best ten yuan store". Can famous creative products break through through the IPO?
Convolution free backbone network: Pyramid transformer to improve the accuracy of target detection / segmentation and other tasks (with source code)
.Net分布式事务及落地解决方案
[quick start of Digital IC Verification] 6. Quick start of questasim (taking the design and verification of full adder as an example)
js实现禁止网页缩放(Ctrl+鼠标、+、-缩放有效亲测)
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
随机推荐
document方法
Guidelines for application of Shenzhen green and low carbon industry support plan in 2023
小程序项目结构
Leetcode brush question: binary tree 14 (sum of left leaves)
Leetcode(347)——前 K 个高频元素
Leetcode skimming: binary tree 12 (all paths of binary tree)
CVPR 2022 | 常见3D损坏和数据增强
[quick start of Digital IC Verification] 9. Finite state machine (FSM) necessary for Verilog RTL design
A way to calculate LNX
Minimum commission for stock trading account opening, where to open an account with low commission? Is it safe to open an account on your mobile phone
mongodb文档间关系
什么是pyc文件
JS implementation prohibits web page zooming (ctrl+ mouse, +, - zooming effective pro test)
Oracle tablespace management
【数字IC验证快速入门】9、Verilog RTL设计必会的有限状态机(FSM)
C language OJ gets PE, OJ of ACM introduction~
Classic implementation of the basic method of intelligent home of Internet of things
Leetcode (347) - top k high frequency elements
[C language] merge sort
3.3、项目评估