当前位置:网站首页>[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
边栏推荐
- Wpf: solve the problem that materialdesign:dialoghost cannot be closed
- idea取消引用顯示效果
- P2704 [NOI2001] 炮兵阵地(状压dp)
- [cocos creator] get the resource UUID
- Base64和Base64URL
- IP production stream is so close to me
- unity2019_ Input management
- My touch screen production "brief history" 2
- MXone Pro自适应2.0影视模板西瓜视频主题苹果cmsV10模板
- UE4 plug in development
猜你喜欢

Free use until 2015 -- viz artist multi touch plug-in package

Haproxy+kept cluster setup 02

Are you still watching the weather forecast on TV?
![P1596 [USACO10OCT]Lake Counting S](/img/a7/07a84c93ee476788d9443c0add808b.png)
P1596 [USACO10OCT]Lake Counting S

Unity performance optimization

数据分析练习题

I want to do large screen data visualization application feature analysis

Unity change default editor

梯度下降法求解BP神经网络的简单Demo

haproxy+keepalived搭建01
随机推荐
Why can void * be a general pointer
IP production stream is so close to me
Wpf: solve the problem that materialdesign:dialoghost cannot be closed
MAE
An intern's journey to cnosdb
Golang time format sorting
数据分析练习题
P2622 light off problem II (state compression search)
Haproxy+kept build 01
Three characteristics
String class
Exe file running window embedding QT window
Uniapp learning records
[USACO12MAR]Cows in a Skyscraper G(状态压缩dp)
oracle 插入单引号
About Wireshark's unsuccessful installation of npcap
the installer has encountered an unexpected error installing this package
【更新中】微信小程序学习笔记_3
Golang json格式和结构体相互转换
jsutlis