尝试添加标签时,我不断收到以下错误: TypeError: Object has no method 'getModel'
这是我的代码片段:
_onRecordRead: function(record, operation) {
if(operation.wasSuccessful()) {
var tagStore = record.getCollection('Tags');
defectStore.add({'_ref':'/tag/1234'});
defectStore.sync({
callback: function() {
console.log('success');
}
});
}
},
我究竟做错了什么?