ext使用总结(三) 使用Model加载Form

    loadFormData: function (modelPath, formName, centerpage, record) {
        Ext.ModelManager.getModel(modelPath).load(record.data.id, { 
            failure:function (record, operation) {
//                console.log(operation);
            },
            success:function (record, operation) {
                centerpage.down(formName).loadRecord(record);
            },
            scope:centerpage
        });
    }

你可能感兴趣的:(Model)