产品需求加一个按钮,这个按钮要求常驻所有页面,我们的小程序包含tab,不太清楚应该用什么方式实现这个需求。
如何实现在所有页面都加一个按钮?How to add a button to all pages?
如何实现在所有页面都加一个按钮?产品需求加一个按钮,这个按钮要求常驻所有页面,我们的小程序包含tab,不太清楚应该用什么方式实现这个需求。
Add a button to the product requirement. This button is required to reside on all pages. Our small program contains tab. It is not clear how to realize this requirement.
回答:
这个只能写个组件或者插件,每个页面都加上按钮组件的代码吧
写一个按钮组件,其他页面引用就ok了
原文出处:如何实现在所有页面都加一个按钮?
偷不了懒,必须在每个页面加代码。