문제

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"?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top