如何从Firebase DB中添加和删除一个按钮?

发布于 2025-02-10 03:42:49 字数 175 浏览 0 评论 0原文

我需要帮助实现如何制作它,以便当我单击按钮时,将firebase ID添加到数据库中,然后从同一按钮上的数据库中删除它 这是我的代码,它添加了 我的代码

I need help in implementing how to make it so that when I click on the button, I add the firebase id to the database, and then delete it from the database on the same button
Here is my code, it adds but when I click again to delete it adds and deletes immediately
my code

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文