我這樣做在一個骯髒的方式,想知道是否有一個更好的方式:改變「這個」範圍爲骨幹collection.create
this.collection.create(
{
'name': this.$('.name').val()
},
{
success: function() {
alert(_this);
},
error: function() {
alert(_this);
},
wait: true
}
);