版本:CocosCreator3D 1.1.0
我写了个测试函数。
private async TestAsync() {
console.log(“start TestAsync”);
await this.waitForTime(0.01);
console.log(“end TestAsync”);
}
然后打包微信小游戏。
在真机上直接异常:
Uncaught(in promise) gameThirdScriptError
Cannot red property ‘value’ of undefined
TypeError: Cannot read property ‘value’ of undefined
ad n(game.js:8059:17)
…
在线等。。。。