Backbone 学习札记

Backbone 学习笔记1. 在 backbone 的 set 方法的源码中,有如下一段代码:model.set(attributes, [options])

Backbone 学习笔记

1. 在 backbone 的 set 方法的源码中,有如下一段代码:

model.set(attributes, [options])

应该会比较容易理解:

?{name : name} ?是作为 attributes 的,

{error: function(context,msg,options) {alert(msg);} ?是作为 options 的

?