我正在编写一些测试代码,并希望在浮动容器中显示一个列表。测试代码不起作用。任何人都可以看看我是否缺少任何东西:
var p = Ext.create('Ext.form.Panel', {
xtype: 'panel',
scrollable: true,
centered: true,
width: 300,
height: 300,
items: [
{
xtype:"container",
layout: {
type: 'vbox'
},
items: [
{
xtype: "list",
itemTpl: '{title},{author}',
flex: 1,
store: {
autoLoad: true,
fields : ['title', 'author'],
proxy: {
type: 'jsonp',
url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog',
reader: {
type: 'json',
rootProperty: 'responseData.feed.entries'
}
}
}
}
]
}
]
});
Ext.Viewport.add(p);