Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Cocos Creator】拒绝 evalString 进行回调,使用 JSB 进行手动绑定(流程篇) #12

Open
wzpan opened this issue May 30, 2019 · 4 comments

Comments

@wzpan
Copy link

wzpan commented May 30, 2019

https://oedx.github.io/2019/05/29/cocos-creator-js-binding-manual/

背景一直以来,ABCmouse 项目中的整体 JS/Native 通信调用结构都是基于 callStaticMethod <-> evalString 的方式。通过 callStaticMethod 方法我们可以通过反射机制直接在 JavaScript 中调用 Java / Objective-C 的静态方法。而通过 evalString 方式,则可以执行 JS 代码,这样便可以进行双

@goesByhc
Copy link

goesByhc commented Aug 27, 2019

很棒

@jareguo
Copy link

jareguo commented Nov 29, 2019

谢谢大神的分享。我们打算在 Creator 官方文档中进行转载。我们会严格遵循 CC BY 4.0 协议,并且给出作者和原文地址。

@wzpan
Copy link
Author

wzpan commented Nov 29, 2019

@jareguo
谢谢大神的分享。我们打算在 Creator 官方文档中进行转载。我们会严格遵循 CC BY 4.0 协议,并且给出作者和原文地址。

哈哈,欢迎欢迎!

@huangbaichao
Copy link

请问这个文件FileDownloader是放到哪里的呢?
jsb_boot.js. CCDirector.cpp 这两个文件又是在什么地方呢?不是很熟悉底层的,按着步骤在上述三个地方卡住了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants