当前位置:网站首页>Applet record
Applet record
2022-07-26 09:49:00 【~ light boat ~】
Today, according to the wechat applet learned from Qianfeng video flexbox Elastic magic box model
This is actually related to iOS There is too much difference We're doing it iOS Do this during development You can use it. xib Go drag Pretty simple
It can also be used. masonry To set up It can also be directly based on frame To set up One thing is that they fix the position when initializing , But wechat applet is not , The initialization is a place, and the setting position is another place , And is set around the control ( In fact, it's the same iOS Almost. Just not used to ), Actually, it's quite convenient .
in addition iOS And the naming rules of wechat applet are also different , This is also a problem of habit . Control is followed by class Is the name of the control, and then in wxss Set the position and size of the control in . And the tiny controls will be automatically arranged downward in the order you write , Set the specific position of the control according to the spacing you write . Therefore, the sequence of controls is particularly important in micro .
Next is the interaction of events
Maybe I haven't touched the previous paragraph before , I feel very uncomfortable , stay iOS All operations are executed during initialization , The operation of wechat applet is js Execute data processing in , stay wxml Set the method to be added .
To judge the click between different controls, use currentTarget Medium id data-xxx And so on
wxml
![]()
js
![]()
边栏推荐
- PHP one-time request lifecycle
- 2021年山东省中职组“网络空间安全”B模块windows渗透(解析)
- Sqoop【付诸实践 02】Sqoop1最新版 全库导入 + 数据过滤 + 字段类型支持 说明及举例代码(query参数及字段类型强制转换)
- SSG framework Gatsby accesses the database and displays it on the page
- Cloud native (36) | introduction and installation of harbor in kubernetes
- Apple dominates, Samsung revives, and domestic mobile phones fail in the high-end market
- Login module use case writing
- 高斯消元的应用
- Node 内存溢出及V8垃圾回收机制
- Fiddler download and installation
猜你喜欢

Gauss elimination

Node memory overflow and V8 garbage collection mechanism

Due to fierce competition in the new market, China Mobile was forced to launch a restrictive ultra-low price 5g package

Qt随手笔记(三)在vs中使用QtCharts画折线图

matlab中的AR模型短时预测交通流

图解用户登录验证流程,写得太好了!

Fiddler packet capturing tool for mobile packet capturing
![[MySQL database] a collection of basic MySQL operations - the basis of seeing (adding, deleting, modifying, and querying)](/img/a7/b3bb6f584dff0eb9b49e81e5b9dade.png)
[MySQL database] a collection of basic MySQL operations - the basis of seeing (adding, deleting, modifying, and querying)

【Datawhale】【机器学习】糖尿病遗传风险检测挑战赛

The diagram of user login verification process is well written!
随机推荐
【荧光字效果】
Double authentication of server and client
In the same CONDA environment, install pytroch first and then tensorflow
M-ary number STR to n-ary number
2020-12-29
2021 windows penetration of "Cyberspace Security" B module of Shandong secondary vocational group (analysis)
Basic knowledge of website design
Redis sentinel mode setup under Windows
Azkaban [basic knowledge 01] core concepts + features +web interface + Architecture +job type (you can get started with Azkaban workflow scheduling system in one article)
CSV data file settings of JMeter configuration components
Sqoop [put it into practice 02] sqoop latest version full database import + data filtering + field type support description and example code (query parameter and field type forced conversion)
Gauss elimination
Sqoop【付诸实践 02】Sqoop1最新版 全库导入 + 数据过滤 + 字段类型支持 说明及举例代码(query参数及字段类型强制转换)
Fuzzy PID control of motor speed
网站设计需要的基本知识
高斯消元
Unstoppable, pure domestic PCs have been in place, and the monopoly of the U.S. software and hardware system has been officially broken
(一)面扫描仪与机械臂的手眼标定(眼在手上)
Great reward for interview questions
苹果独占鳌头,三星大举复兴,国产手机在高端市场颗粒无收