如何在Sencha Touch中的add()方法中传入eOpts

时间:2014-06-05 14:37:35

标签: 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 = ' + store.getCount());

        console.log(eOpts.length);
    });

正如Sencha Touch doc所提到的,调用add()方法会触发addrecords事件。

所以我想知道如何传递eOpts?

谢谢。

1 个答案:

答案 0 :(得分:-1)

我明白了:

mystore.on('eventName', function, records, eOpts);