如何让cocos2d-js进入后台时,继续播放动画

2d-x中可以一下这样

// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground() {
    Director::getInstance()->stopAnimation();

    // if you use SimpleAudioEngine, it must be pause
    // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
}


```

但看了js源码,貌似就不行了, 是web平台

同问,在JS Binding中,如何处理应用切入后台的回调呢?
自己写个JS函数,然后在applicationDidEnterBackground里面调用,这样可以吗?