当前位置:网站首页>[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
边栏推荐
- Pulitzer Prize in the field of information graphics - malofiej Award
- animation
- Product creation and commercial realization of chat robot (according to La Ma Bang - Dr. Wang Jingjing - speech)
- Idea dereference display effect
- Scite change background color
- Delete the last character of the string in golang
- Golang 字符串分割,替换和截取
- Kwai 20200412 recruitment
- Three characteristics
- Map的实现类的顺序性
猜你喜欢
随机推荐
链式长取值
数据的存储
【音视频】ijkplayer错误码
the installer has encountered an unexpected error installing this package
Scite change background color
JSON与Object之间转换
Unity2019_ Natural ambient light_ Sky box
Pulitzer Prize in the field of information graphics - malofiej Award
MaxCompute字符串分割函数-SPLIT_PART
[usaco12mar]cows in a skyscraper g (state compression DP)
How to establish rectangular coordinate system in space
Product creation and commercial realization of chat robot (according to La Ma Bang - Dr. Wang Jingjing - speech)
Retail philosophy retail psychological warfare after reading -- 7-11 is a good product!
MAE
Some understandings of 3dfiles
Wechat native applet cloud development learning record 01
Golang url的编码和解码
图像处理8-CNN图像分类
Haproxy+kept build 01
My touch screen production "brief history" 1








