服务器搭建网站跑不满宽带,建立网站服务的公司网站,广告机,软件源地址大全#ifdef //仅在xxx平台使用#ifndef //除了在xxx平台使用#endif // 结束
标识平台APP-PLUSAPPMP微信小程序/支付宝小程序/百度小程序/头条小程序/QQ小程序MP-WEIXIN微信小程序MP-ALIPAY支付宝小程序MP-BAIDU百度小程序MP-TOUTIAO头条小程序MP-QQQQ小程序H5H5APP-PLUS-NVUEApp nv…#ifdef //仅在xxx平台使用#ifndef //除了在xxx平台使用#endif // 结束
标识平台APP-PLUSAPPMP微信小程序/支付宝小程序/百度小程序/头条小程序/QQ小程序MP-WEIXIN微信小程序MP-ALIPAY支付宝小程序MP-BAIDU百度小程序MP-TOUTIAO头条小程序MP-QQQQ小程序H5H5APP-PLUS-NVUEApp nvue
这个条件编译可以在jscsshtml中使用不过使用时需要注释掉比如
html
!-- #ifdef MP --
slot name{{item.dataIndex}} :textdata[item.dataIndex] :recorddata :indexdataIndex/
!-- #endif --
!-- #ifndef MP --
slot :nameitem.dataIndex :textdata[item.dataIndex] :recorddata :indexdataIndex/
!-- #endif --js
// #ifdef H5
this.getBlob(data.url).then((blob) {this.saveAs(blob, data.name);
});
// #endif
// #ifdef APP-PLUS
this.appDownloadFile(data)
// #endifcss
/* #ifdef MP-ALIPAY */
.cu-custom .cu-bar .action .cuIcon-back {opacity: 0;
}/* #endif */.cu-custom .cu-bar .content image {height: 60upx;width: 240upx;
}.cu-custom .cu-bar {min-height: 0px;/* #ifdef MP-WEIXIN */padding-right: 220upx;/* #endif *//* #ifdef MP-ALIPAY */padding-right: 150upx;/* #endif */box-shadow: 0upx 0upx 0upx;z-index: 9999;
}