在我对模型进行编辑后会发生这种情况。它发送请求(我已经在chrome中打开了,我看到它在外部记录)但是当它得到响应时,会弹出该错误。
这是我的模特:
Investments.EmergingModel = Backbone.Model.extend
idAttribute: "id_number"
initialize: ->
_.bindAll this
url: ->
u = "#{Investments.Options.rootUrl}fleets/#{Investments.Options.fleet}/emerging_technology_vehicles"
u = "#{Investments.Options.rootUrl}fleets/#{Investments.Options.fleet}/emerging_technology_vehicles/#{this.id}" if this.id
u
如果您需要更多代码,请告诉我。