gpt4 book ai didi

javascript - 错误 : Paths must be non-empty strings and can't contain ".", "#"、 "$"、 "["或 "]"(ionic 2 和 firebase)

转载 作者:太空狗 更新时间:2023-10-29 17:44:33 25 4
gpt4 key购买 nike

<分区>

saveDetails(){
this.afAuth.authState.take(1).subscribe(auth => {
this.af.object('request/${auth.uid}').set(this.request)
.then();
})

执行该方法后,报错:Firebase.child failed: First argument was an invalid path: "request/${auth.uid}"。路径必须是非空字符串,不能包含“.”、“#”、“$”、“[”或“]”。尝试删除 $ 但那不起作用。很确定我也没有传递空字符串。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com