Sencha touch 使用sencha touch store调用简单jsp

Sencha touch 使用sencha touch store调用简单jsp,sencha-touch,sencha-touch-2,sencha-touch-2.1,Sencha Touch,Sencha Touch 2,Sencha Touch 2.1,我正试着呼叫商店里的电话线。我的回答是“嗨,你在服务器里怎么样?” `out.print("Hi how are you");` 我正在打印回复 贮藏 控制器 我们是否可以使用读卡器读取普通字符串?这是可能的。通过扩展Ext.data.reader.reader创建您自己的文本阅读器。还没有完成,但我想您至少必须重写getResponseData方法 谢谢你的回复。我觉得很难使用字符串,所以我更改了对JSONP的响应 Ext.define('PracticeSencha.store.Custo

我正试着呼叫商店里的电话线。我的回答是“嗨,你在服务器里怎么样?”

`out.print("Hi how are you");`
我正在打印回复

贮藏

控制器


我们是否可以使用读卡器读取普通字符串?

这是可能的。通过扩展Ext.data.reader.reader创建您自己的文本阅读器。还没有完成,但我想您至少必须重写getResponseData方法

谢谢你的回复。我觉得很难使用字符串,所以我更改了对JSONP的响应
Ext.define('PracticeSencha.store.CustomStore', {
    extend: 'Ext.data.Store',
    alias : 'widget.CustomStore',
    config: {
    type: 'ajax',
        url:'sample url.jsp',
        storeId: 'productStoreID'
    },
    reader: {
        type: 'text' 
    }
});
var sto = Ext.create('PracticeSencha.store.CustomStore');
        sto.load({
            scope : this,
            callback : function(records, operation, success,failure) {
                console.log(records);
                console.log(operation);
                console.log(success);
                console.log(sto.count());
            }
        });