久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='OyNcR'></bdo><ul id='OyNcR'></ul>
      <legend id='OyNcR'><style id='OyNcR'><dir id='OyNcR'><q id='OyNcR'></q></dir></style></legend>

      1. <small id='OyNcR'></small><noframes id='OyNcR'>

      2. <i id='OyNcR'><tr id='OyNcR'><dt id='OyNcR'><q id='OyNcR'><span id='OyNcR'><b id='OyNcR'><form id='OyNcR'><ins id='OyNcR'></ins><ul id='OyNcR'></ul><sub id='OyNcR'></sub></form><legend id='OyNcR'></legend><bdo id='OyNcR'><pre id='OyNcR'><center id='OyNcR'></center></pre></bdo></b><th id='OyNcR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='OyNcR'><tfoot id='OyNcR'></tfoot><dl id='OyNcR'><fieldset id='OyNcR'></fieldset></dl></div>

        <tfoot id='OyNcR'></tfoot>
      3. 根據(jù) Firebase 中的子子項過濾產(chǎn)品

        Filter products based on the sub child in Firebase(根據(jù) Firebase 中的子子項過濾產(chǎn)品)

        • <legend id='VxWxl'><style id='VxWxl'><dir id='VxWxl'><q id='VxWxl'></q></dir></style></legend>

            <tbody id='VxWxl'></tbody>
          • <small id='VxWxl'></small><noframes id='VxWxl'>

            <tfoot id='VxWxl'></tfoot>
                  <bdo id='VxWxl'></bdo><ul id='VxWxl'></ul>
                  <i id='VxWxl'><tr id='VxWxl'><dt id='VxWxl'><q id='VxWxl'><span id='VxWxl'><b id='VxWxl'><form id='VxWxl'><ins id='VxWxl'></ins><ul id='VxWxl'></ul><sub id='VxWxl'></sub></form><legend id='VxWxl'></legend><bdo id='VxWxl'><pre id='VxWxl'><center id='VxWxl'></center></pre></bdo></b><th id='VxWxl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VxWxl'><tfoot id='VxWxl'></tfoot><dl id='VxWxl'><fieldset id='VxWxl'></fieldset></dl></div>
                  本文介紹了根據(jù) Firebase 中的子子項過濾產(chǎn)品的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我試圖弄清楚如何根據(jù) Firebase 中的子子節(jié)點過濾產(chǎn)品.

                  I am trying to figure out how to filter products based on their sub child nodes in Firebase.

                  我的設(shè)置如下:

                  products/
                       product1
                          /author: 12345
                          /title: "Awesome"
                          /description: "more awesome"
                       product2
                          /author: 67890
                          /title: "Awesome"
                          /description: "more awesome"
                  

                  如何查詢 Firebase 以便僅檢索它所持有的 child($productId).child(author) 等于 12345 的產(chǎn)品?

                  How can I query Firebase such that I retrieve only the products for which it holds that child($productId).child(author) equals 12345?

                  我嘗試了以下方法,但這顯然不起作用.我需要一種過濾子子項的方法:

                  I tried the following, but that obviously does not work. I need a way to filter on the subchild:

                  var ref = new Firebase(FBURL);
                  
                  // Attach an asynchronous callback to read the data at our posts reference
                  ref.child("products").child('$productId').child('author').equalTo(12345).on("value", function(snapshot) {
                        console.log(snapshot.val());
                      }, function (errorObject) {
                        console.log("The read failed: " + errorObject.code);
                  });
                  

                  推薦答案

                  只需使用orderByChild():

                  ref.child("products").orderByChild('author').equalTo(12345)...
                  

                  這將通過 author 屬性對 products 下的每個子節(jié)點進(jìn)行排序,然后僅返回值為 12345 的子節(jié)點.

                  This will order every child node under products by its author property and then return only the ones that have a value of 12345.

                  請參閱 Firebase 關(guān)于查詢的文檔.

                  這篇關(guān)于根據(jù) Firebase 中的子子項過濾產(chǎn)品的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數(shù)據(jù)更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創(chuàng)建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態(tài)元素 - Angular 2 amp;離子2)
                  1. <legend id='3Z6UK'><style id='3Z6UK'><dir id='3Z6UK'><q id='3Z6UK'></q></dir></style></legend>
                  2. <small id='3Z6UK'></small><noframes id='3Z6UK'>

                    <i id='3Z6UK'><tr id='3Z6UK'><dt id='3Z6UK'><q id='3Z6UK'><span id='3Z6UK'><b id='3Z6UK'><form id='3Z6UK'><ins id='3Z6UK'></ins><ul id='3Z6UK'></ul><sub id='3Z6UK'></sub></form><legend id='3Z6UK'></legend><bdo id='3Z6UK'><pre id='3Z6UK'><center id='3Z6UK'></center></pre></bdo></b><th id='3Z6UK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3Z6UK'><tfoot id='3Z6UK'></tfoot><dl id='3Z6UK'><fieldset id='3Z6UK'></fieldset></dl></div>
                        <tbody id='3Z6UK'></tbody>
                      <tfoot id='3Z6UK'></tfoot>
                        <bdo id='3Z6UK'></bdo><ul id='3Z6UK'></ul>

                          • 主站蜘蛛池模板: 区一区二区三在线观看 | 精品国产欧美日韩不卡在线观看 | 日韩一区二区免费视频 | 在线观看中文字幕视频 | 亚洲国产日韩一区 | 人人干97 | 青青草一区 | 伦理二区| 亚洲国产成人精品久久久国产成人一区 | 欧美视频在线播放 | 欧美h| 精品精品 | 欧美视频在线看 | 久久一区二区三区四区 | 欧美激情五月 | 久久久国产亚洲精品 | 欧美a免费 | 欧美精品一区久久 | va在线| 精品欧美乱码久久久久久 | 在线观看视频一区二区三区 | 国产高清在线观看 | 亚洲欧美日韩在线一区二区 | 久久免费精品 | 久久亚洲国产 | 激情一区二区三区 | 看羞羞视频 | 91精品久久久久久久久久 | 手机在线一区二区三区 | 国产成人aⅴ | 91精品久久久久久久久中文字幕 | 中文字幕第一页在线 | 午夜小电影| 久草热8精品视频在线观看 午夜伦4480yy私人影院 | 久久久成人精品 | 999久久久久久久久6666 | 爱爱综合网| 都市激情亚洲 | 国产精品一区在线观看你懂的 | 欧美日韩国产高清 | 黄色播放 |