Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.8k views
in Technique[技术] by (71.8m points)

wepy框架 子页面调用app.wepy定义的方法,报'tabBarClickHandle' of undefined

app.wepy:
image.png
image.png
所需页面pages/index.wpy:
image.png
微信开发者工具报错:
image.png
请问是什么原因?感谢指导!小白颠簸在路上 -_-|||


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

已找到答案,wepy2.0现将$parent修改为$app;但是解决完此问题后;产生新的问题:在app.wpy定义的方法中$apply已经在2.0取消此用法。文档说使用VUE Objsct,小白一点都不明白。。请见谅,请指教!现在报错为image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...