当前位置:网站首页>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
边栏推荐
猜你喜欢
A new paradigm of distributed deep learning programming: Global tensor
2021年山东省中职组“网络空间安全”B模块windows渗透(解析)
Uni app learning summary
一种分布式深度学习编程新范式:Global Tensor
[MySQL database] a collection of basic MySQL operations - the basis of seeing (adding, deleting, modifying, and querying)
R语言ggplot2可视化: 将图例标题(legend title)对齐到ggplot2中图例框的中间(默认左对齐、align legend title to middle of legend)
Solve NPM -v sudden failure and no response
Node memory overflow and V8 garbage collection mechanism
阿里云技术专家郝晨栋:云上可观测能力——问题的发现与定位实践
Azkaban【基础知识 01】核心概念+特点+Web界面+架构+Job类型(一篇即可入门Azkaban工作流调度系统)
随机推荐
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)
Solve the problem of storing cookies in IE7 & IE8
C managed and unmanaged
Azkaban【基础知识 01】核心概念+特点+Web界面+架构+Job类型(一篇即可入门Azkaban工作流调度系统)
Why does new public chain Aptos meet market expectations?
新增市场竞争激烈,中国移动被迫推出限制性超低价5G套餐
Wechat H5 payment on WAP, for non wechat browsers
【Mysql数据库】mysql基本操作集锦-看得会的基础(增删改查)
(1) Hand eye calibration of face scanner and manipulator (eye on hand)
EOJ 2020 January race E-number transformation
Global variables in DLL
IIS error prompt after installing Serv-U: hresult:0x80070020
R语言ggpubr包ggsummarystats函数可视化分组箱图(自定义分组颜色)并在X轴标签下方添加分组对应的统计值(样本数N、中位数median、四分位数的间距iqr、统计值的色彩和分组图色匹配
【Datawhale】【机器学习】糖尿病遗传风险检测挑战赛
copyTo
[information system project manager] summary of essence of high-level series for the first time
2020-12-29
asp. Net using redis cache (2)
regular expression