-1
我已经写了一个控制器。当我从视图中点击按钮,该控制器通用的“按钮”被称为如下:Ext.data.JsonP.request timeout
'button': {
tap: function() {
Ext.data.JsonP.request({
url: 'http://download.finance.yahoo.com/d/quotes.csv',
params: {
s: '^BSESN',
f: 'nsl1op'
},
callbackKey: 'callback',
scope: this,
success: function(res, req) {
Ext.example.msg('Sucess!', 'CSV file successfully generated.');
Ext.data.StoreManager.get('Files').load();
},
failure: function(res, req) {
console.log('Failed to load csv file.');
}
});
....
....
....
它timesout和失败被称为“无法加载csv文件。”
我使用的原始URL是“http://download.finance.yahoo.com/d/quotes.csv?s=^BSESN & f = nsl1op”。
我想知道我出错的地方。