且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

添加模型收集后自动保存

更新时间:2023-12-03 13:15:16

您可以使用收集在创建函数来添加一个模型,并自动保存到服务器上。

You can use the create function on the collection to add a model and have it automatically saved to the server.

myCollection.create({title: Romeo and Juliette, author: Shakespeare});

下面是对创建功能的文档。

Here's the documentation on the create function.