解析/主干集合get和getByCid不起作用

时间:2014-11-07 17:51:27

标签: javascript backbone.js parse-platform

我正在对Parse.Collection的模型进行一些更改,并且在更改结束时,我无法找到正确的Collection模型。

我有一个名为thisDrive.attributes.clusterStart的模型。是否已取出此模型并不重要。我可以访问它的idcid属性。 id = mzy36FdGT8

clustersCollection = undefined

包含此模型的集合称为clustersCollection.get(thisDrive.attributes.clusterStart.id);

以下行返回id

mzy36FdGT8

我确定clustersCollection中存在clustersCollection.models[0].id = "mzy36FdGT8" 的模型,因为

cid

返回

thisDrive.attributes.clusterStart

enter image description here

cid中模型的{{1}}与集合中第一个模型的{{1}}不同。

我错过了什么?

0 个答案:

没有答案
相关问题