首页 > 关于backbone集合里面的create方法,求助求助!

关于backbone集合里面的create方法,求助求助!

app.Todos.create( this.newAttributes() );

上面的代码成功的向Todos集合里面插入了一条数据模型,但是老是会报

backbone-min.js:16 Uncaught TypeError: a.parse is not a function

这个错误,请问是怎么回事,虽然把create改成add就不会报错,但是add不会将数据模型存储到locaStorage里面,怎么解决?


this.newAttributes()打印出来是什么

【热门文章】
【热门文章】