Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

mc.onAppHide(Function callback)

监听应用切后台事件。

参数

参数类型默认值必填说明
callbackFunction是应用切后台事件的回调函数

示例代码:

mc.onAppHide(function(res){
    console.log('app hide');
});