📅  最后修改于: 2020-10-27 03:41:31             🧑  作者: Mango
它用于将模型的状态持久保存到服务器。
下表列出了可用于操作BackboneJS-Sync的方法–
S.No. | Methods & Description |
---|---|
1 |
Backbone.sync
It persists the state of the model to the server. |
2 |
Backbone.ajax It defines the custom ajax function. |
3 |
Backbone.emulateHTTP
If your web server does not support REST or HTTP approach, then turn on the Backbone.emulateHTTP. |
4 |
Backbone.emulateJSON
It is used to handle the requests encoded with application/json by setting the method to true. |