D
D
DevOFF2017-01-18 08:48:21
backbone.js
DevOFF, 2017-01-18 08:48:21

How to process the response from the Backbone JS server?

Good day to all.
Please tell me the best way to do this.
There is a field that takes the value . After I send value on the server the
Server in the answer sends the data.

this.model.set({name:name_val});
var result  this.model.save();
console.log(result);

The console log shows in attributes the data that the server sent, everything is ok.
But you can't get the values.
this.model.get("name"); // возвращает default  значение

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question