当前位置:网站首页>[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
边栏推荐
- Youyou1 of xlua knapsack system
- ArrayList
- E: 无法定位软件包 ros-melodic-desktop-full
- Viz artist advanced script video tutorial -- stringmap use and vertex operation
- Pulitzer Prize in the field of information graphics - malofiej Award
- Compilation error: "not in executable format: file format not recognized"“
- 【音视频】ijkplayer错误码
- Transfinite hacker cognition
- P2622 light off problem II (state compression search)
- Idea dereference display effect
猜你喜欢

Transplantation of freetype Library

Youyou1 of xlua knapsack system

matlab神经网络所有传递函数(激活函数)公式详解

Wechat applet taro learning record

oracle 插入单引号

Clion toolchains are not configured configure disable profile problem solving

C语言-入门-精华版-带你走进编程(一)

the installer has encountered an unexpected error installing this package

Haproxy+kept cluster setup 02

matlab神經網絡所有傳遞函數(激活函數)公式詳解
随机推荐
Dotween plug-in
ArrayList
Exe file running window embedding QT window
matlab神经网络所有传递函数(激活函数)公式详解
MaxCompute字符串分割函数-SPLIT_PART
Three characteristics
详解sizeof、strlen、指针和数组等组合题
Ilruntime learning - start from scratch
P2704 [NOI2001] 炮兵阵地(状压dp)
Cesium service deployment, and import and display local 3dfiles data
Puhua PLM empowers the whole scene product lifecycle management and helps the enterprise digital transformation of the main line of products
Transplantation of tslib Library
Golang's range
【K&R】中文第二版 个人题解 Chapter1
KunlunBase MeetUP 等您来!
Zohocrm deluge function application time verification
JS common basic case sorting (continuous update)
数据分析练习题
[usaco12mar]cows in a skyscraper g (state compression DP)
[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)