最佳答案:调用大量的 addRegisterCallback 函数,向 SpiderMonkey 注册 Cocos2d-x 引擎的函数。ScriptingCore* sc = ScriptingCore::ge