判斷isPersisted的條件:
[外鍊圖檔轉存失敗,源站可能有防盜鍊機制,建議将圖檔儲存下來直接上傳(img-NOMtVYAx-1610104864467)(https://upload-images.jianshu.io/upload_images/2085791-0f4a86962de6482f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]
存在key,并且根據group調用get方法的傳回值必須是key本身。
交由persist-service實作處理:

從map裡取資料,然而map是空的:
隻有persistent Directive的handleFocus方法裡,才會在記憶體map裡設定focus: