如何实现在所有页面都加一个按钮?

小程序 文章 2021-03-08 15:01 462 0 全屏看文

AI助手支持GPT4.0

如何实现在所有页面都加一个按钮?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.

回答:

老张:

偷不了懒,必须在每个页面加代码。

Brother斌🎈:

这个只能写个组件或者插件,每个页面都加上按钮组件的代码吧

太初:

写一个按钮组件,其他页面引用就ok了

Randall:但这样还是要每个页面都需要加代码的吧,需要在所有页面去加才能做到
太初:别想偷懒 写吧

-EOF-

AI助手支持GPT4.0