当前位置:网站首页>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
边栏推荐
- 牛客网——华为题库(41~50)
- Is Huatai Securities safe
- Use kubernetes resource lock to complete your own ha application
- 利用kubernetes资源锁完成自己的HA应用
- 多维分析预汇总应该怎样做才管用?
- Share the code technology points and software usage of socket multi client communication
- 7-27 bubble sorting (the k-th time)
- Research on VB multi-layer firewall technology - state detection
- What kind of life is a tester with a monthly salary of over 10000?
- Typescript (4) interface
猜你喜欢

The metadata request parsing principle of OData XML format applied by SAP ui5 is based on domparser

XML and other file contents in idea cannot be highlighted, and the file becomes gray

Code repetition of reinforcement learning based parameters adaptation method for particlewarn optimization

Analysis of sending principle of OData metadata request for SAP ui5 application

What is the difference between the history and Western blotting

Statistical learning method (2/22) perceptron

Design and development of VB mine sweeping game

EdrawMax思维导图,EdrawMax组织结构图

Do280 allocating persistent storage

Exclusive analysis | real situation of software test about resume and interview
随机推荐
Docker中安裝Oracle數據庫
Fibonacci sequence
Teach you how to understand the test environment project deployment
Testing until you're 35? The 35 + test will lead to unemployment?
C language course design - food warehouse management system
统计学习方法(4/22)朴素贝叶斯
Rasa对话机器人之HelpDesk (五)
The latest justnews theme source code 6.0.1 happy version + social Q & a plug-in 2.3.1+ tutorial
TypeScript(5)类、继承、多态
华泰证券安全吗
多维分析预汇总应该怎样做才管用?
Ambiguity between 0 and 1
利用kubernetes资源锁完成自己的HA应用
P7 Erkai early know - registration and application creation
Battle drag method 1: moderately optimistic and build self-confidence (2)
How to select database
Share the code technology points and software usage of socket multi client communication
机构加密资产产品上周流出4.23亿美元资金,创历史新高
What is the reason for the service crash caused by replacing the easycvr cluster version with the old database?
Is it safe to open a securities account at qiniu business school in 2022?



