-2

如何在 senchatouch2 中使用 sqlite 数据库。在我使用的模型中,

代理:{类型:“sql”,数据库:“ContactsDB”}

出现错误..请提供示例代码

4

1 回答 1

0

这正是我所拥有的。我只是把它放在模型的配置中。

config: {
    identifier: {
        type: 'uuid'
    },
    fields: [
        {name: 'username', type: 'string'}, 
        {name: 'password', type: 'string' },
    ],
    proxy: {
       type: "sql",
       database: "FullContact",
    }
},

请记住包括参考:

要求:['Ext.data.identifier.Uuid','Ext.data.proxy.Sql',],

于 2013-05-09T16:02:57.723 回答