var html = [
'<div></div>',
'<div style="background-color:#DFE8F6;padding:1 1 1 1">标题:'+recode.get("title"),
typeInfo,
'<p>时间:'+recode.get("sendtime")+'</p></div>',
recode.get("content"),
'</br></br></br></br></br></br></br></br></br>',
'<div style="background-color:#DFE8F6;padding:1 1 1 1">附件:</div>','</br>',
recode.get("emailFileTrueName")+" "+'('+recode.get("emailFileSize")+'K)'+'</br>',
"<input name='btn' type='button' value='下载' onclick='download()'>"
]
function download(){
alert("sdfsd");
}
var panEmailInfos=new Ext.Panel({
renderTo:"particularEmailDom",
width:1080,
height:500,
cloable:true,
html:html.join(''),
tbar:new Ext.Toolbar({
margins: '0 0 0 0' ,
height:25,
autoWidth:true,
style:'border:0px;margin-top:0px;padding-left:15px;',
items:[{
xtype:'button',
text:'返回',
icon:ICONPATH+'arrow_turn_left.png',
handler:backEmail
},"-",{
xtype:'button',
text:'回复',
icon:ICONPATH+'icon-outbox.png',
handler:function(){
emailUserNames=recode.get("usersBySendusername");
condition="t";
fasongxinyoujian();
particularEmail(null,null,null);
}
}]
})
}
我在ext中添加一段html代码,但是在"<input name='btn' type='button' value='下载' onclick='download()'>"想加一个button,执行download方法,可是执行不了 ,该怎么办??????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货