// 表示代码仅在 H5 平台上面执行,其他平台不执行 #ifdef H5 需条件编译的代码 #endif // 表示代码在 H5 平台上面不执行,其他平台上面执行 #ifndef H5 需条件编译的代码 #endif // 表示代码在 H5 平台和 App 平台上面执行,其他平台上面不执行 #ifndef H5 || APP-PLUS 需条件编译的代码 #endif
注:本文内容转载于http://t.csdn.cn/FiYAz,更多内容请查看原文。
// 表示代码仅在 H5 平台上面执行,其他平台不执行 #ifdef H5 需条件编译的代码 #endif // 表示代码在 H5 平台上面不执行,其他平台上面执行 #ifndef H5 需条件编译的代码 #endif // 表示代码在 H5 平台和 App 平台上面执行,其他平台上面不执行 #ifndef H5 || APP-PLUS 需条件编译的代码 #endif
注:本文内容转载于http://t.csdn.cn/FiYAz,更多内容请查看原文。