1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| export const H5 = function (fn) {
| // #ifdef H5
| fn();
| // #endif
| };
| export const APP = function (fn) {
| // #ifdef APP-PLUS
| fn();
| // #endif
| };
| export const applets = function (fn) {
| // #ifdef MP
| fn();
| // #endif
| };
| export const notH5 = function (fn) {
| // #ifndef H5
| fn();
| // #endif
| };
| export const baiduApple = function (fn) {
| // #ifdef MP-BAIDU
| fn();
| // #endif
| };
| export const touTiao = function (fn) {
| // #ifdef MP-TOUTIAO
| fn();
| // #endif
| };
| export const mp = function (fn) {
| // #ifdef MP
| fn();
| // #endif
| };
|
|