Methods | Syntax | Description |
---|
Backbone.sync | sync.(method, model, options)
| It persists the state of the model to the server. Parameters:
method − the CRUD method ("create" , "read" , "update" , or "delete" )
model − the model to be saved (or collection to be read)
options − success and error callbacks, and all other jQuery request options |
ajax | Backbone.ajax = function(request) { ... }; | It defines the custom ajax function. |
emulateHTTP | Backbone.emulateHTTP = true | If your web server does not support REST or HTTP approach, then turn on the Backbone.emulateHTTP. |
emulateJSON | Backbone.emulateJSON = true | It is used to handle the requests encoded with application/json by setting the method to true. |