[英]Remove collection from model RacerJS?
這是我的客戶端代碼:
model.remove('agent',{'text':'online'});
我無法從模型中刪除集合,它在控制台中顯示以下錯誤
Error: remove must be performed under a collection and document id. Invalid path: agent
從文檔看來,“路徑”應該是collectionname.id。 在這種情況下,也許我認為它應該是“ agent.id”。
該博客指出該路徑應采用collection.documentId.document格式。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.