当前位置:网站首页>Uniapp notes
Uniapp notes
2022-06-29 01:36:00 【GG·bond】
1. Project directory

2. Template syntax
- vue Component syntax
v-bind / :
v-on / @
v-model
v-if
v-show
v-for
- Empty label
template
- view As div Use
- text As span Use
3. uni Conditional compilation
Each platform has its own features , So there will be some situations that cannot be cross platform ; Conditional compilation is marked with special comments , Based on these special comments at compile time , Compile the code in the comments to different platforms .
#ifdef:if defined Only on a platform
#ifndef:if not defined Except for a platform
#endif ending
// Platform value
APP-PLUS:App
APP-PLUS-NVUE or APP-NVUE : App nvue
H5 H5
MP-WEIXIN Wechat applet
MP-ALIPAY Alipay applet
MP-BAIDU Baidu applet
MP-TOUTIAO Bytedance applet
MP-LARK Flying Book applet
MP-QQ QQ Applet
MP-KUAISHOU Kwai Mini program
···
#ifdef H5 Only in h5 End show
边栏推荐
- Basic use of Sqlalchemy
- 同花顺究竟是如何开户?在线开户是安全么?
- 立创eda学习笔记:铺铜死区?孤岛?死铜?
- 栈的增删查改---动态内存
- Design and development of VB mine sweeping game
- Near consensus mechanism
- Interviewer: with the for loop, why do you need foreach??
- Do280 allocating persistent storage
- After easycvr creates a new user, the video access page cannot be clicked. Fix the problem
- 802.1x协议简述
猜你喜欢

测试只能干到35岁?35岁+的测试就会失业?

PAT甲级真题1165

Server antivirus

Test a CSDN free download software

手把手教你搞懂测试环境项目部署

我把整个研发中台拆分过程的一些心得总结

Learning notes of Lichuang EDA: Copper laying dead zone? isolated island? Dead copper?
![[Fire Detection] forest fire detection system based on Matlab GUI (with panel) [including Matlab source code phase 1921]](/img/fa/17731d46a70112faadbfd0e61be143.png)
[Fire Detection] forest fire detection system based on Matlab GUI (with panel) [including Matlab source code phase 1921]

C语言课程设计------食品仓库管理系统

分享自己平时使用的socket多客户端通信的代码技术点和软件使用
随机推荐
7-29 delete substring in string (non KMP)
Magic Quadrant of motianlun's 2021 China Database
Basic use of flask Sqlalchemy
Stm32l4xx serial port log configuration analysis
Analysis of parsing principle of OData metadata request response in SAP ui5 application
TypeScript(7)泛型
The metadata request parsing principle of OData XML format applied by SAP ui5 is based on domparser
Niuke.com Huawei question bank (41~50)
SAP ui5 beginner tutorial Part 23 - sorting sort and grouping Group trial version of list control
Code repetition of reinforcement learning based parameters adaptation method for particlewarn optimization
Edrawmax mind map, edrawmax organization chart
Hello i am back
Introduction to UE gameplay 44 (animation import FBX and production standard)
【图像处理】基于matlab实现图像曲线调整系统
如何进行数据库选型
第八天 脚本与音频
手把手教你搞懂测试环境项目部署
What kind of life is a tester with a monthly salary of over 10000?
What is the reason for the service crash caused by replacing the easycvr cluster version with the old database?
Analysis of advantages and disadvantages of environment encryption and transparent encryption



