Sencha touch 无法将JSONP与特定url一起使用

Sencha touch 无法将JSONP与特定url一起使用,sencha-touch,sencha-touch-2,Sencha Touch,Sencha Touch 2,为什么我不能将JSONP存储与此url一起使用 当我尝试Sencha Architect时,右键单击“存储/加载数据”会出现错误,但它在浏览器上工作 这是来源 Ext.define('SozlerimMobile.store.CategoryStore', { extend: 'Ext.data.Store', requires: [ 'SozlerimMobile.model.Categories', 'Ext.data.proxy.JsonP', 'Ext.data

为什么我不能将JSONP存储与此url一起使用
当我尝试Sencha Architect时,右键单击“存储/加载数据”会出现错误,但它在浏览器上工作
这是来源

Ext.define('SozlerimMobile.store.CategoryStore', {
extend: 'Ext.data.Store',

requires: [
    'SozlerimMobile.model.Categories',
    'Ext.data.proxy.JsonP',
    'Ext.data.reader.Json'
],

config: {
    autoLoad: true,
    autoSync: true,
    model: 'SozlerimMobile.model.Categories',
    storeId: 'CategoryStore',
    proxy: {
        type: 'jsonp',
        extraParams: {
            Status: 'Active'
        },
        url: 'http://www.sozler.im/rest/categories/',
        reader: {
            type: 'json',
            clientIdProperty: 'id',
            idProperty: 'id',
            rootProperty: ''
        }
    }
}

}))

Web服务必须返回JSONP(带有函数回调的JSON-请参阅)


更多信息请参见:

Martin,您认为此服务没有回调功能吗?只需查看Chrome开发工具,即可查看请求。可能有类似于
?callback=JSONPCallback1
或类似的内容。并且响应应该包装在
JSONPCallback1(…)