Frage

I'm trying to use the GET method to send and retrieve information from the server but I seem to be having some trouble with the formatting the data for transport.

Does backbone serialize the data into url parameters when using .save() .fetch() or .create()?

I'm trying to

model.save({count: 8},{type:'get'});

But apparently the object isn't being converted to url strings....is it I need to do my own serializing? or am I doing it wrong?

What is the convention when using ":get" instead of "post"?

War es hilfreich?

Lösung

If you want to use get you need to pass processData:true in the options

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top