Ian
Results
1
issues of
Ian
URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/advanced-topics/oc-reflection.md#objective-c-%E6%89%A7%E8%A1%8C-javascript-%E4%BB%A3%E7%A0%81 代码示例部分建议加上需要导入的头文件: ```objc #import “cocos/platform/CCApplication.h” #import “cocos/base/CCScheduler.h” #import “cocos/scripting/js-bindings/jswrapper/SeApi.h” ... Application::getInstance()->getScheduler()->performFunctionInCocosThread([=](){ se::ScriptEngine::getInstance()->evalString(script.c_str()); }); ```