3.0.1 ios
在xcode里面
se::ScriptEngine::getInstance()->evalString(“find(“Canvas”)?.getComponent(“gameView”).onOC();”);
报错.
然而
find(“Canvas”)?.getComponent(“gameView”).onOC();
这句在js里面是跑通了的.
错误如下:
ScriptEngine::evalString catch exception:
ERROR: Uncaught ReferenceError: find is not defined, location: (no filename):0:0
STACK:
- [0]anonymous@(no filename):1
- [1]anonymous@assets/main/index.js:17
- [2]emit@src/cocos-js/cc.js:1
- [3]anonymous@src/cocos-js/cc.js:1
- [4]dispatchEvent@src/cocos-js/cc.js:1
- [5]dispatchEvent@src/cocos-js/cc.js:1
-
Creator 版本:
-
目标平台:
-
重现方式:
-
首个报错:
-
之前哪个版本是正常的:
-
手机型号:
-
手机浏览器:
-
编辑器操作系统:
-
重现概率: