Call c++ from js

Hi, I’m creating a game with cocos2d-js and i want to call a c++ method.
How to call C++ methods from the js method ?
any tutorial ?
Thank you.

To call C++ from JavaScript, I believe you have to create something called a “binding”. A tutorial on it seems to be here: http://www.cocos2d-x.org/wiki/Binding_Custom_Class_To_Js_Runtime