最近在学习小程序时候想实现标签也切换,查了官方文档,使用wx.switchTab可以在标签页切换,并且仅使用用标签页,标签页不会摧毁,正合我意。搜嘎,立马用了呃呃,尴尬了没实现我的效果。
然后经过我的百般思索(各种百度)发现了一个问题
我忽视了呃呃

this.getTabBar().init();
在每一个标签页都加上这句好就完全ok了
最近在学习小程序时候想实现标签也切换,查了官方文档,使用wx.switchTab可以在标签页切换,并且仅使用用标签页,标签页不会摧毁,正合我意。搜嘎,立马用了呃呃,尴尬了没实现我的效果。
然后经过我的百般思索(各种百度)发现了一个问题
我忽视了呃呃
this.getTabBar().init();
在每一个标签页都加上这句好就完全ok了
文章有(2)条网友点评
Your article made me suddenly realize that I am writing a thesis on gate.io. After reading your article, I have a different way of thinking, thank you. However, I still have some doubts, can you help me? Thanks.
After reading your article, it reminded me of some things about gate io that I studied before. The content is similar to yours, but your thinking is very special, which gave me a different idea. Thank you. But I still have some questions I want to ask you, I will always pay attention. Thanks.