var e_window = new Ext.Window({
title: 'test,
width: 680,
height: 420,
plain: true,
closeAction: 'close',
defaults: {
anchor: '95%'
},
layout:'form',
items: [{
xtype: "panel",
baseCls: "x-plain",
style: "padding:5px",
layout: "column",
items: [{
id:'ImageUrl',
columnWidth: .5,
layout: "form",
labelWidth: 50,
baseCls: "x-plain",
html:'<img id="ImageUrl" src="'+ImageUrl+'" width="320" height="320"/>'
}]
}]
//...
在一个按钮单击事件中用
document.getElementById("ImageUrl").src
Ext.get("ImageUrl").src
都得不到值
IE6可以,IE7不行

Astral 最后编辑于 2009-12-24 15:01:46