From 105ff1144bd6d7c78a56c50b92c61cae8c23fb88 Mon Sep 17 00:00:00 2001 From: geek-wynn <15130422583@163.com> Date: Mon, 1 Aug 2022 08:09:11 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/tutorial/platform.md.=20=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=97=B6=20#ifndef=20H5=20=E6=94=B9=E4=B8=BA#ifdef=20?= =?UTF-8?q?H5=20=E5=90=8E=20=20H5=E7=BC=96=E8=AF=91=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/tutorial/platform.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/platform.md b/docs/tutorial/platform.md index bb067ec0e..669dc179f 100644 --- a/docs/tutorial/platform.md +++ b/docs/tutorial/platform.md @@ -19,7 +19,7 @@ uni-app 已将常用的组件、JS API 封装到框架中,开发者按照 uni- * #ifndef:if not defined 除了某平台均存在 * %PLATFORM%:平台名称 -
条件编译写法说明
#ifdef APP-PLUS
需条件编译的代码
#endif
仅出现在 App 平台下的代码
#ifndef H5
需条件编译的代码
#endif
除了 H5 平台,其它平台均存在的代码
#ifdef H5 || MP-WEIXIN
需条件编译的代码
#endif
在 H5 平台或微信小程序平台存在的代码(这里只有||,不可能出现&&,因为没有交集)
+
条件编译写法说明
#ifdef APP-PLUS
需条件编译的代码
#endif
仅出现在 App 平台下的代码
#ifdef H5
需条件编译的代码
#endif
除了 H5 平台,其它平台均存在的代码
#ifdef H5 || MP-WEIXIN
需条件编译的代码
#endif
在 H5 平台或微信小程序平台存在的代码(这里只有||,不可能出现&&,因为没有交集)
%PLATFORM% **可取值如下:** -- Gitee