当前位置:网站首页>[updating] wechat applet learning notes_ three
[updating] wechat applet learning notes_ three
2022-07-03 08:17:00 【Miska_ Muska】
【 Updating 】 Wechat app learning notes _3
Custom components
Create components
Different components should be stored in separate directories
Refer to the component
Choose according to the frequency of use .
Local
// page.json
{
"usingComponents": {
"my-test": "/components/test/test"
}
}
// wxml
<my-test></my-test>
overall situation
// app.json
Components VS page
Component style
- Isolation,
Isolation only works on class Selectors , At this time, the component uses app.wxss Invalid style
Should be in the component / The component application page uses class Selectors , Do not use id/ attribute / tag chooser !
Modify isolation options
// component.js
Component({
options: {
"styleIsolation": 'isolated'
}
})
// OR component.json
{
"styleIsolation": "isolated"
}
sytleIsolation Optional value
La la la
边栏推荐
- P2622 关灯问题II(状态压缩 搜索)
- [USACO12MAR]Cows in a Skyscraper G(状态压缩dp)
- P2622 light off problem II (state compression search)
- Youyou1 of xlua knapsack system
- E: 无法定位软件包 ros-melodic-desktop-full
- Golang的range
- 简易入手《SOM神经网络》的本质与原理
- Easy touch plug-in
- Lua framwrok framework starts
- E: Unable to locate package ROS melody desktop full
猜你喜欢
Redis的数据结构
【更新中】微信小程序学习笔记_3
Oracle insert single quotation mark
matlab神經網絡所有傳遞函數(激活函數)公式詳解
JS common basic case sorting (continuous update)
Three characteristics
L'installateur a été installé avec une erreur inattendue
Base64和Base64URL
Unity2019_ Lighting system
[set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
随机推荐
YOLO系列 --- xml2txt脚本
An intern's journey to cnosdb
Osgearth north arrow display
Minimap plug-in
详解sizeof、strlen、指针和数组等组合题
Some understandings of 3dfiles
数据的存储
Map的实现类的顺序性
oracle中的 (+)是什么意思
Delete the last character of the string in golang
【云原生】微服务之Feign的介绍与使用
【更新中】微信小程序学习笔记_3
十六进制编码简介
数据分析练习题
Base64 and base64url
Golang's range
Lua hot update basic grammar
MAE
How to establish rectangular coordinate system in space
Initial unity