86
Backbone.js model.parse()
The Backbone.js parse model is used by the server to return the model’s data by passing through the response object. It represents the data in JSON format.
Syntax:
Parameter explanation:
response: It is passed using response raw object and returns attributes to be set on the model.
options: It represents data in JSON format if the option is true.
Let’s take an example.
See this example:
Output:
Save the above code in parse.html file and open this file in a new browser.
Next TopicBackbone.js Clone