【发布时间】:2020-11-25 20:56:37
【问题描述】:
我有一个表单,我想将表单输入值传递到这里。如何根据表单输入值动态填充“旧金山”?
我已尝试创建变量并使用变量填充字段,但收到一条错误消息,提示
error.ts:166 未捕获的 FirebaseError:使用无效数据调用函数 DocumentReference.set()。不支持的字段值:未定义(在文档事件/RNiEJ9nUxVO1IGFr0TL5 中的字段 eventName 中找到)
参考链接:https://firebase.google.com/docs/firestore/query-data/get-data#web
【问题讨论】:
-
为了完全清楚这一点,您想将表单上加载的数据发布到 Firestore 还是要在表单中加载 Firestore 数据?
-
@JoséSoní 我想将表单上加载的数据上传到 Firestore
-
我编辑了答案,将代码保留为代码 sn-p,在 Stack Overflow 中,最好将代码共享为 sn-p 而不是图像
-
谢谢你,@JoséSoní
标签: firebase cordova google-cloud-firestore cordova-2.0.0