我有一个使用 mers ( https://github.com/jspears/mers ) 运行的休息服务。
现在我想将它连接到backbone.js
问题是 mers 返回包含在有效负载数组中的集合以及附加信息:
例如
{"payload":[
{"_id":"4fe3773ffca7f74410000001","pos":[48.123447013691425,11.57250838808296],"username":"AyKarsi","pictures":[],"images":[],"roles":[],"meta":{},"groups":[]},
{"_id":"4fe3773ffca7f74410000002","pos":[0,3444],"username":"TestUpdateFromClient","pictures":[],"images":[],"roles":[],"meta":{},"groups":[]},],
"status":0,"total":5}
这个信息很好,但是我如何告诉骨干集合它应该在哪里寻找模型?