我使用select函数但返回空值。我只需要获取属性tipo = value的模型
var Integrated = Backbone.Collection.extend({
equalThan: function (value) {
var models = this.select(function (model) {
return model.get(tipo) === value;
});
console.log(models);//empty
},
})
tipo是属性名称,value是属性值