uniapp怎么判断当前app是否在自定义基座中运行?
网友回复
暂时没有办法,只能判断是否在app或者h5、获取小程序中预编译,或者js动态获取,可能后期 后支持。
// #ifdef APP-PLUS showClose:true //该代码仅在app中生效 // #endif // #ifdef H5 showClose:true //该代码仅在h5中生效 // #endif // #ifdef MP showClose:true //该代码仅在小程序中生效 // #endif // #ifdef MP-W...
点击查看剩余70%