- Creator 版本: 2.4.7
- 目标平台: iOS
在main.js内调用callStaticMethod方法:
…
if (window.jsb) {
var baseBundleFilePathExcludeDocument = jsb.reflection.callStaticMethod(“KKCCMgr”,
“baseBundleFilePathExcludeDocument”);
…
}
提示错误:
ScriptEngine::evalString catch exception:
ERROR: Uncaught TypeError: Cannot read property ‘callStaticMethod’ of undefined, location: main.js:0:0
STACK:
[0]anonymous@main.js:164
Uncaught Exception:
- location : (see stack)
- msg : Uncaught TypeError: Cannot read property ‘callStaticMethod’ of undefined
- detail :
[0]anonymous@main.js:164
请问如何在main.js内调用jsb.reflection.callStaticMethod呢?