在Firebase中手动插入数据 [英] Manually inserting data in Firebase

查看:94
本文介绍了在Firebase中手动插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Angular.js和Firebase创建一个应用程序,直到我的界面处于工作状态,我正在计划手动插入数据。虽然添加键值对是很容易的,但我还是无法弄清楚如何构建多个级别的数据,比如添加一个包含多个条目的对象。如果我导入一个json文件,它会这样做,但是我不想编辑一个json文件,每次我想要修改的时候都要上传它。有没有办法做到这一点,我不知道?

解决方案

如果您前往Firebase Forge(在 https:// [your-firebase] .firebaseio.com ),则可以为Firebase加载图形化调试器,并手动添加,修改或删除数据,并将其视为它实时变化。使用Forge添加分层数据,使用 + 按钮创建一个新的子属性,给它一个名字并将值留空,然后使用子项上的 + 按钮开始添加更多的子项或子属性。当你准备保存你的数据时,使用 Add 按钮,或者点击 [Enter]


I am creating an app using Angular.js and Firebase and until I have the interface in working order, I am planning on manually inserting data. While it's easy enough to add key:value pairs, I haven't been able to figure out how to structure multiple levels of data, like adding an object which has multiple entries inside of it. If I import a json file, it does this, but I do not want to have to edit a json file and upload it everytime I want to make a change. Is there a way to do this that I am unaware of?

解决方案

If you head to Firebase Forge (at https://[your-firebase].firebaseio.com), you can load up the Graphical Debugger for your Firebase and manually add, modify, or remove data, as well as watch it as it changes in real-time.

To add hierarchical data using Forge, using the + button to create a new child attribute, give it a name and leave the value blank, and then use the + button on the child to begin adding more children or child attributes. When you're ready to save your data, use the Add button, or hit [Enter].

这篇关于在Firebase中手动插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆