当前位置:网站首页>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
![]()
边栏推荐
- 新增市场竞争激烈,中国移动被迫推出限制性超低价5G套餐
- MySQL的逻辑架构
- Process32first returns false, error x message 24
- (1) Hand eye calibration of face scanner and manipulator (eye on hand)
- [information system project manager] summary of essence of high-level series for the first time
- Fiddler packet capturing tool for mobile packet capturing
- Solve NPM -v sudden failure and no response
- Table extraction for opencv table recognition (2)
- 高斯消元求解异或线性方程组
- The whole process of server environment configuration
猜你喜欢

电机转速模糊pid控制

【荧光字效果】

阿里云技术专家郝晨栋:云上可观测能力——问题的发现与定位实践

在Blazor 中自定义权限验证

spolicy请求案例

Gauss elimination solves the inverse of matrix (Gauss)

SSG framework Gatsby accesses the database and displays it on the page

I finished watching this video on my knees at station B

Great reward for interview questions

R语言ggplot2可视化: 将图例标题(legend title)对齐到ggplot2中图例框的中间(默认左对齐、align legend title to middle of legend)
随机推荐
uni-app学习总结
【Datawhale】【机器学习】糖尿病遗传风险检测挑战赛
Flutter event distribution
IIS error prompt after installing Serv-U: hresult:0x80070020
服务发现原理分析与源码解读
新公链Aptos何以拉满市场期待值?
高斯消元求解异或线性方程组
[information system project manager] summary of essence of high-level series for the first time
小白搞一波深拷贝 浅拷贝
PHP one-time request lifecycle
Show default image when wechat applet image cannot be displayed
系统安装Serv-U后IIS出错提示:HRESULT:0x80070020
Nodejs service background execution (forever)
IIS网站配置
Modern medicine in the era of "Internet +"
m进制数str转n进制数
IE7 set overflow attribute failure solution
新增市场竞争激烈,中国移动被迫推出限制性超低价5G套餐
Login module use case writing
面试突击68:为什么 TCP 需要 3 次握手?