我四处寻找有关将集合保存到后端的教程,但到目前为止我还没有找到,将集合发送到服务器的正确方法是什么。
查看文档,它没有保存方法。
最佳答案
使用sync method在集合中。
synccollection.sync(method, collection, [options])
Uses Backbone.sync to persist the state of a collection to the server. Can be overridden for custom behavior.
关于javascript - 以 Express 方式将主干集合保存到 MongoDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25833670/