avatar

Catalog
ApiCloud打包H5壳APP,apicloud h5使用api对象接口,h5退出App应用方法,Apicloud Web App退出App

使用H5打包的apicloud web app,需要退出App时,可以直接调用这个接口

html
1
2
3
4
5
6
<div onclick='closeApp()'>直接退出!</div>
<script>
api.closeWidget({
silent:true // 静默退出
});
</script>

ApiCloud api接口可以直接在Web App里使用
https://docs.apicloud.com/Client-API/api#14

Author: Qin
Link: https://qinhaolei.com/posts/43012/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Reward
  • WechatPay
    WechatPay
  • AliPay
    AliPay
  • Bitcoin
    Bitcoin

Comment