Extjs DataView 图片显示不出 求大家 帮助谢谢了
[code=JScript][/code]var imageList = new Ext.data.Store({
autoLoad:true,//立即加载数据
reader:new Ext.data.JsonReader({
totalProperty:'results',
root:'items',
fields:[
'picName','picUrl'
]
}),
proxy:new Ext.data.HttpProxy({
url:"findImg_findPic.action"
})
})
var tpl = new Ext.XTemplate(
'<tpl for=".">',
'<div class="thumb-wrap" id="{picName}">',
'<div class="thumb"><img src="{picUrl}" title="{picName}"></div>',
'</tpl>',
'<div class="x-clear"></div>'
);
items:[new Ext.DataView({
store: imageList,
tpl: tpl,
autoHeight:true,
multiSelect: true,
overClass:'x-view-over',
itemSelector:'div.thumb-wrap',
emptyText: 'No images to display'
})]
------解决方案--------------------
的撒旦撒打算的