我在写:
mystore.add(mystore,{
name: "winston fan",
twitter: 'WFC'
});
mystore.on('addrecords', function(store, records, eOpts) {
console.log('new recorded have been added.');
console.log('new recorded number = ' + store.getCount());
console.log(eOpts.length);
});
正如Sencha Touch doc所提到的,调用add()方法会触发addrecords事件。
所以我想知道如何传递eOpts?
谢谢。
答案 0 :(得分:-1)
我明白了:
mystore.on('eventName', function, records, eOpts);