The Backbone.JS emulateHTTP() method is turned ON when the web server does not support REST or HTTP approach. It fakes PUT, PATCH and DELETE requests with an HTTP POST, if this method is set to true.
Syntax:
Backbone.emulateHTTP = true
Example:
Example
Output:
create:{"name":"Tom","city":"London"}update: {"name":"Tom","city":"London","id":100,"age":10}