Backbone model.destroy() invoking error callback function even when it works fine?

后端 未结 5 1257
不知归路
不知归路 2021-02-05 01:01

I have a Backbone.js model that I\'m trying to destroy when the user clicks a link in the model\'s view. The view is something like this (pseudocode because it\'s implemented in

5条回答
  •  一整个雨季
    2021-02-05 02:03

    Your response must have status code 204 as you won't return any content. Since backbone uses a REST interface you should return different http status codes depending on the task.

提交回复
热议问题