当前位置:网站首页>[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
边栏推荐
猜你喜欢

Mall management system of database application technology course design

unity2019_ Input management

Are you still watching the weather forecast on TV?

数据分析练习题

Unity4.3.1 engine source code compilation process

Kwai 20200412 recruitment

Shader foundation 01
![[global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel](/img/51/04f5a9dbd03438fbdf25545a81b7ba.jpg)
[global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel

Flex flexible box layout

Unity performance optimization
随机推荐
[global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel
Basic operation and process control
Zohocrm deluge function application time verification
Puhua PLM empowers the whole scene product lifecycle management and helps the enterprise digital transformation of the main line of products
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
Retail philosophy retail psychological warfare after reading -- 7-11 is a good product!
Wpf: solve the problem that materialdesign:dialoghost cannot be closed
About the problem that the editor and the white screen of the login interface cannot be found after the location of unityhub is changed
Storage of data
Redis的数据结构
Idea unreference Display Effect
tslib库的移植
One dimensional array two dimensional array (sort Max insert sort)
UE4 call DLL
[cocos creator] Click the button to switch the interface
Conversion between string and int types in golang
P2622 关灯问题II(状态压缩 搜索)
C#课程设计之学生教务管理系统
Open the influence list of "National Meteorological Short Videos (Kwai, Tiktok) in November" in an interactive way“
Encoding and decoding of golang URL