JSONP请求中不支持的URL

时间:2013-08-23 18:36:46

标签: json url extjs jsonp

我的网络应用从localhost / alpha /和加载 我在执行JSONP请求时从浏览器(Chrome或Safari)收到以下错误消息:

GET localhost:5000/ISeeYou/webservice/login.php?email=b&pwd=b&callback=Ext.data.JsonP.callback1&_dc=1377281924940 unsupported URL

我正在使用Sencha Touch,这是我的代码:

Ext.data.JsonP.request({
                        url: ISeeYou.url+'/ISeeYou/webservice/login.php',
                        params:{
                            email: email,
                            pwd: pwd
                        },
                        success: function(response){}
});

当我直接在浏览器中复制/粘贴错误中显示的网址时,它的效果非常好。

1 个答案:

答案 0 :(得分:-1)

开头只需要“http://”。

相关问题