试图获取已保存模型的 id
var newBookmark = bookmarks.create(values,{
success:function(){
console.log('Successfuly saved')
console.log(idOfThisModel) //need id from the server here
this.close()
},
error: function(){console.log('error, didnt save')},
})
如何将模型的 id 放入成功方法中?