生命周期函数 onshow 里的参数 scene undefined

发布于 8 年前作者 guiyingchen2945 次浏览最后编辑 8 年前来自 ask

后台运维中心报错

Cannot read property ‘scene’ of undefined;App catch error in lifeCycleMethod onShow function

请问在什么情况下 生命周期函数 onshow 里的参数 scene会是 undefined

1 回复
sliu
sliu1 楼6 年前

onLoad里面取 scene