0

这发生在我对模型进行编辑之后。它发送请求(我在 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

如果您需要更多代码,请告诉我..

4

0 回答 0