Commit 33b0bcf2 authored by asdf's avatar asdf

测试监听后台

parent 211a47bc
...@@ -10,7 +10,7 @@ cc.Class({ ...@@ -10,7 +10,7 @@ cc.Class({
nodLayerPages: cc.Node, nodLayerPages: cc.Node,
pfbItemIndicator: cc.Prefab, pfbItemIndicator: cc.Prefab,
pfbItemPage: cc.Prefab, pfbItemPage: cc.Prefab,
audTurnPage:cc.AudioClip, audTurnPage: cc.AudioClip,
}, },
// 生命周期 onLoad // 生命周期 onLoad
...@@ -122,6 +122,15 @@ cc.Class({ ...@@ -122,6 +122,15 @@ cc.Class({
this.preloadItem() this.preloadItem()
} }
}) })
cc.game.on(cc.game.EVENT_HIDE, function () {
console.log("cc.game.EVENT_HIDE");
});
cc.game.on(cc.game.EVENT_SHOW, function () {
console.log("cc.game.EVENT_HIDE");
});
}, },
getData(cb) { getData(cb) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment