Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个带有禁用和启用扩展的切换按钮的 chrome 扩展,但问题是当我单击它时扩展图标隐藏。我在考虑后台扩展,但是如何在 manifest.json 中添加两个扩展..
答案很简单:你不能!在 manifest.json 中,您只能声明一个扩展和所有相关资源。您想要实现的行为是不可能的,因为如果停用扩展程序,该图标将从 chrome 工具栏中删除,并且无法更改此设置。