mc.onAppShow(Function callback)

监听应用切前台事件。

参数

参数 类型 默认值 必填 说明
callback Function 应用切前台事件的回调函数

callback(Object object) 回调参数

属性 类型 说明 最低版本
path String 启动应用的路径 (代码包路径)
scene Number 启动应用的场景值
query Object 启动应用的 query 参数  

示例代码:

mc.onAppShow(function(res){
    console.log(res);
});

results matching ""

    No results matching ""

    results matching ""

      No results matching ""