#import "ScriptingCore.h"
std::string arg ="test";
std::string funName ="UtilsPlatform.alertEmailSetting";
std::string rStr = funName + "(\"" + arg + "\");";
ScriptingCore::getInstance()->evalString(rStr.c_str());

ccc1.8版本开始要改为:
#import "cocos/scripting/js-bindings/jswrapper/SeApi.h"
se::ScriptEngine::getInstance()->evalString(rStr.c_str());

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-09-28
  • 2021-09-26
相关资源
相似解决方案