Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 494966

oc调用js最简教程

$
0
0

是这么做的,最后到了evalString这个方法里面
bool ScriptingCore::evalString(const char string, JS::MutableHandleValue outVal, const char *filename, JSContext cx, JS::HandleObject global)
{
JSAutoCompartment ac(cx, global);
JS::PersistentRootedScript script(cx);
if (script == nullptr) {
return false;
}
走到这里script是空,就停了


Viewing all articles
Browse latest Browse all 494966

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>