久久久久久久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. 根據 Firebase 中的子子項過濾產品

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

        • <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>
                  本文介紹了根據 Firebase 中的子子項過濾產品的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我試圖弄清楚如何根據 Firebase 中的子子節點過濾產品.

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

                  我的設置如下:

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

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

                  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 下的每個子節點進行排序,然后僅返回值為 12345 的子節點.

                  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 關于查詢的文檔.

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

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

                  相關文檔推薦

                  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 - 使用異步數據更新 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 中,如何創建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - 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>

                          • 主站蜘蛛池模板: 在线观看a视频 | 欧产日产国产精品视频 | 国产日韩一区二区 | 精品小视频| 成人免费在线视频 | 青春草91| 在线播放国产视频 | av毛片免费 | 久久久国产精品视频 | 一区二区视频在线观看 | 一区二区在线免费观看视频 | 国产第二页 | 亚洲激情视频在线 | 国产激情偷乱视频一区二区三区 | 久久精品国产一区二区 | 日本超碰 | 天堂在线www| 欧美日韩在线精品 | 国产色网| 天天摸天天看 | 国产乱码一二三区精品 | aaaaaaa片毛片免费观看 | 精品一区二区在线观看 | 成人小视频在线观看 | 黄色毛片免费 | 欧美国产中文字幕 | 亚洲精品免费视频 | 二区在线视频 | 国产免费va | 午夜激情一区 | 欧美一级在线视频 | 一二区视频 | 亚洲精美视频 | 欧美九九 | 久久av一区二区三区 | 亚洲精品一区二区网址 | 日日操日日干 | 亚洲视频第一页 | 国产欧美一区二区三区日本久久久 | 日韩中文字幕 | 成年免费大片黄在线观看岛国 |