Skip to content

sud.exitMiniProgram ​

JS
    sud.exitMiniProgram(Object object)

退出当前小游戏

参数

  • Object object: 传入参数,具体的属性见下表

object 的属性说明:

属性键值类型是否必填说明
datastring/object否退出游戏时返回的数据,交给应用处理,bject类型会转为JSON
successfunction否接口调用成功的回调函数
failfunction否接口调用失败的回调函数
completefunction否接口调用结束的回调函数