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

  • <small id='vchsT'></small><noframes id='vchsT'>

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

      1. <legend id='vchsT'><style id='vchsT'><dir id='vchsT'><q id='vchsT'></q></dir></style></legend>

        卡在按值/子鍵刪除父推送鍵

        Stuck at deleting parent pushed key by value/childkey(卡在按值/子鍵刪除父推送鍵)
        <i id='L5hjP'><tr id='L5hjP'><dt id='L5hjP'><q id='L5hjP'><span id='L5hjP'><b id='L5hjP'><form id='L5hjP'><ins id='L5hjP'></ins><ul id='L5hjP'></ul><sub id='L5hjP'></sub></form><legend id='L5hjP'></legend><bdo id='L5hjP'><pre id='L5hjP'><center id='L5hjP'></center></pre></bdo></b><th id='L5hjP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='L5hjP'><tfoot id='L5hjP'></tfoot><dl id='L5hjP'><fieldset id='L5hjP'></fieldset></dl></div>
        • <legend id='L5hjP'><style id='L5hjP'><dir id='L5hjP'><q id='L5hjP'></q></dir></style></legend>

              <bdo id='L5hjP'></bdo><ul id='L5hjP'></ul>
            • <small id='L5hjP'></small><noframes id='L5hjP'>

                  <tbody id='L5hjP'></tbody>
                <tfoot id='L5hjP'></tfoot>
                  本文介紹了卡在按值/子鍵刪除父推送鍵的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想按值/子鍵刪除父按鍵:

                  I want to delete a parent pushed key by value/childkey:

                  export class FaqsPage {
                    qS: Observable<any[]>;
                    ques = '';
                    ans = '';
                  
                  constructor(private db: AngularFireDatabase) {}
                  ionViewDidLoad() { this.qS = this.db.list('table/faq').valueChanges(); }
                  
                  removeItem(id){this.db.list('table/faq').remove(id);}
                  

                  removeItem() 刪除所有按鍵.難怪,因為我無法獲得父密鑰

                  removeItem() deleting the whole all pushed keys. No wonder because i couldn't get the parent key

                  //faq.html
                  <ion-list>
                      <ion-item-sliding *ngFor="let el of qS | async">
                        <ion-item>
                          <b>{{ el.Q }}</b><br>{{ el.A }}
                        </ion-item>
                        <ion-item-options side="right">
                          <button ion-button color="red" icon-only (click)="removeItem(el.key)"><ion-icon name="trash"></ion-icon></button>
                        </ion-item-options>
                      </ion-item-sliding>
                    </ion-list>
                  

                  由于 valueChanges()

                  el.key doesn't get the the key (e.g. Kzwv8d_i-0QZuf2NT8Z) because of valueChanges() and i have no idea how to do it within current iteration.

                  推薦答案

                  希望你用的是angularfire2

                  I hope you are using angularfire2

                  this.qS = this.db.list('table/faq').snapshotChanges().map(changes => {
                    return changes.map(c => ({ key: c.payload.key, ...c.payload.val() }));
                  });
                  

                  這將返回帶有鍵的 qS

                  這篇關于卡在按值/子鍵刪除父推送鍵的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
                  <i id='QUXrc'><tr id='QUXrc'><dt id='QUXrc'><q id='QUXrc'><span id='QUXrc'><b id='QUXrc'><form id='QUXrc'><ins id='QUXrc'></ins><ul id='QUXrc'></ul><sub id='QUXrc'></sub></form><legend id='QUXrc'></legend><bdo id='QUXrc'><pre id='QUXrc'><center id='QUXrc'></center></pre></bdo></b><th id='QUXrc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QUXrc'><tfoot id='QUXrc'></tfoot><dl id='QUXrc'><fieldset id='QUXrc'></fieldset></dl></div>

                • <small id='QUXrc'></small><noframes id='QUXrc'>

                    <bdo id='QUXrc'></bdo><ul id='QUXrc'></ul>
                        <tfoot id='QUXrc'></tfoot>
                        <legend id='QUXrc'><style id='QUXrc'><dir id='QUXrc'><q id='QUXrc'></q></dir></style></legend>

                              <tbody id='QUXrc'></tbody>

                            主站蜘蛛池模板: 免费99视频 | 超级黄色一级片 | 超碰成人免费 | 亚洲国产精久久久久久久 | 日本久久久久久 | 国产精品久久久久久久久动漫 | 先锋影音资源网站 | 国产一区二区三区视频在线观看 | 亚洲欧美精品久久 | 四季久久免费一区二区三区四区 | 精品美女视频在线观看免费软件 | 91看片网 | 亚洲播放 | 99亚洲视频 | 在线视频一区二区三区 | 黄色片免费在线观看 | 久久久久久久国产精品 | 国产一区欧美一区 | 国产精品av久久久久久久久久 | 人人九九精| 欧美黄色网 | 四虎免费视频 | 久久一区二区三区四区 | 先锋资源吧| 看羞羞视频| 免费色网址 | 亚洲视频区 | 中文字幕精品一区久久久久 | 日韩一二三区视频 | 韩日一区二区 | 久久精品国产一区老色匹 | 亚洲一一在线 | 欧美激情精品久久久久久 | 国产精品波多野结衣 | 日韩综合网 | 日韩成人在线观看 | 日韩av一区二区在线观看 | 国产精品揄拍一区二区久久国内亚洲精 | 国产二区三区 | 久久久久久久久久久高潮一区二区 | 国产精品日韩一区二区 |