Calling native function from javascript code
js call native
and
native call js
Calling native function from javascript code
js call native
and
native call js
James Chen wrote:
http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_bind_C++_to_Javascript
that is old ,i use 2.1.4