iJa*_*ade 1 javascript firebase angularfire
我使用以下代码从Firebase查询数据:
var firebaseObj = new Firebase("https://example.firebaseio.com/Articles");
var sync = $firebase(firebaseObj);
$scope.articles = sync.$asArray();
Run Code Online (Sandbox Code Playgroud)
返回以下数据:
[{
"emailId": "ty@ty.com",
"post": "fgh",
"title": "hfgh"
}, {
"emailId": "kj@hjgfh.com",
"post": "HHHHHH",
"title": "Hello"
}, {
"emailId": "hkj@gmail.com",
"post": "Big news",
"title": "Today's news"
}]
Run Code Online (Sandbox Code Playgroud)
返回的每个条目https://example.firebaseio.com/Articles都有一个唯一的ID,该ID在返回的结果中缺失.如何检索唯一ID.
| 归档时间: |
|
| 查看次数: |
449 次 |
| 最近记录: |