I am totally new to Backbone.js library and read through the whole documentation and understood the working of the library. In the below cases what should the response from the server be for proper working of application designed using backbone (without putting a extra stroke/code).
assume a model like below
window.person = Backbone.Model.extend({
defaults: {
name: "",
email: "dummy@gmail.com"
},
urlRoot: "PersonApp"
});
What JSON should server return assuming validation went well for model.save()
What JSON should server return for model.fetch()
What JSON should server return for model.destroy()
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…