Extjs 如何在Sencha Touch中的add()方法中传入eOpts
我在写:Extjs 如何在Sencha Touch中的add()方法中传入eOpts,extjs,sencha-touch,sencha-touch-2,Extjs,Sencha Touch,Sencha Touch 2,我在写: 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 = '
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);
});
正如senchatouch文档所提到的,调用add方法会触发addrecords事件
所以我想知道如何通过EOPT考试
谢谢。我想起来了:
mystore.on('eventName', function, records, eOpts);
这个答案毫无意义。文档列出了绑定listeners时可以传递的参数。hi@Evantimboli如果您尝试过,您就会知道我的观点。或者你可以提供你的代码来说明你的观点。