extjs4.0,store自动加载时,能否传参数。

[code="java"]

autoLoad : true,
proxy : {
    type : 'rest',

// 通过拼接url的方式不太友好。
// url : 'api/machine/device?organization='+ewayUser.organizationId,

    url : 'api/machine/device',
    reader : {
        type : 'json',
        root : 'data'
    },
    params : {
         organization : ewayUser.organizationId
    }
}

[/code]

extraParams : Object
Extra parameters that will be included on every request. Individual requests with params of the same name will override these params when they are in conflict.

[code="js"]

autoLoad : true,
proxy : {
    type : 'rest',

// 通过拼接url的方式不太友好。
// url : 'api/machine/device?organization='+ewayUser.organizationId,

    url : 'api/machine/device',
            extraParams : {organization:ewayUser.organizationId},
    reader : {
        type : 'json',
        root : 'data'
    },
    params : {
         organization : ewayUser.organizationId
    }
}

[/code]