获取数据库中相片地址的字段为photo:
buildRecord: function() {
this.dataRecord = Ext.data.Record.create([
{name: 'id', type: 'string'},
{name: 'photo', type: 'string'}
]);
显示图片的代码为(此处显示固定的一个图片):
{
columnWidth:.33,
layout: 'form',
border:false,
items: [ {
xtype:'panel',
border:false,
//floating:true,
bodyStyle : 'padding:1,10,5,50;border:1px',
html: '<img id="image1" src="../images/'+'web_05.jpg'+'" width ="90" height="100" />'
}
请问:如何写代码,实现动态加载相片?
buildRecord: function() {
this.dataRecord = Ext.data.Record.create([
{name: 'id', type: 'string'},
{name: 'photo', type: 'string'}
]);
显示图片的代码为(此处显示固定的一个图片):
{
columnWidth:.33,
layout: 'form',
border:false,
items: [ {
xtype:'panel',
border:false,
//floating:true,
bodyStyle : 'padding:1,10,5,50;border:1px',
html: '<img id="image1" src="../images/'+'web_05.jpg'+'" width ="90" height="100" />'
}
请问:如何写代码,实现动态加载相片?