当前位置:网站首页>[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
边栏推荐
- Basic operation and process control 2
- Three characteristics
- Haproxy+kept build 01
- matlab神經網絡所有傳遞函數(激活函數)公式詳解
- One dimensional array two dimensional array (sort Max insert sort)
- 十六进制编码简介
- the installer has encountered an unexpected error installing this package
- Why can void * be a general pointer
- Kwai 20200412 recruitment
- Editor Extensions
猜你喜欢

A tunnel to all ports of the server

C course design employee information management system

haproxy+keepalived搭建01

About Wireshark's unsuccessful installation of npcap
![[end of 2021] National Meteorological Short Video (Kwai, Tiktok) influence list in December](/img/51/81ceaf8746ec7455ea8abf9f038e81.jpg)
[end of 2021] National Meteorological Short Video (Kwai, Tiktok) influence list in December

Viz artist advanced script video tutorial -- stringmap use and vertex operation

MAE

matlab神經網絡所有傳遞函數(激活函數)公式詳解

Clion toolchains are not configured configure disable profile problem solving
![[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)](/img/df/a034032e203e7935dafaf8a71cb6c8.jpg)
[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)
随机推荐
My touch screen production "brief history" 1
idea取消引用顯示效果
Golang的range
Storage of data
jsutlis
MaxCompute字符串分割函数-SPLIT_PART
C#课程设计之员工信息管理系统
Base64编码简介
璞华PLM为全场景产品生命周期管理赋能,助力产品主线的企业数字化转型
UE4 call DLL
多旅行商问题——公式和求解过程概述
the installer has encountered an unexpected error installing this package
Wpf: solve the problem that materialdesign:dialoghost cannot be closed
Some understandings of 3dfiles
Golang json格式和结构体相互转换
P2622 关灯问题II(状态压缩 搜索)
數據庫應用技術課程設計之商城管理系統
Un système de gestion de centre commercial pour la conception de cours de technologie d'application de base de données
[usaco12mar]cows in a skyscraper g (state compression DP)
Retail philosophy retail psychological warfare after reading -- 7-11 is a good product!