Backbone model.save() not calling either error or success callbacks

后端 未结 4 1892
走了就别回头了
走了就别回头了 2020-12-05 06:13

I\'m trying to update a record in DB so I\'m defining model with data and calling .save() method. The PUT request is triggered and the database entry is updated. The problem

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 06:51

    Your server must return a JSON object. If the response is not a JSON object, the callbacks will not fire. Check this solution https://stackoverflow.com/a/22176044/1579718

提交回复
热议问题