yeah! 成功了 
// c++ 某Method
void ToneHelper::getCMD(int cmd) {
auto engine = ScriptingCore::getInstance();
// std::string ff = sprintf("cc.find('Canvas/Label').getComponent('cc.Label').string = 'HelloCocos %d'",cmd);
std::stringstream ss;
// std::stringstream dd;
// ss << "cc.find('Canvas/Label').getComponent('cc.Label').string = 'HelloCocos " << cmd << "'";
dd<< "cc.find('Canvas').getComponent('Bio_page').onOC(" << cmd << ")";
//js file //method //value
// std::string ff = "cc.find('Canvas/Label').getComponent('cc.Label').string = 'HelloCocos %d'";
//std::string dd = "cc.find('Canvas').getComponent('Skill_page').onOC();";
engine->evalString(dd.str().c_str());
log("received %d",cmd);
}
//cocos creator 某 js file’
onOC :function(i){
cc.log("haha I got "+ i);
};
謝謝!!!