var tpl = new Ext.XTemplate(
'
',
'',
'
Commission Information:',
'',
'',
'',
' ',
' ',
' ',
' ',
' ',
' ',
'',
'',
'
Commission Unit | {CommissionUnit} | Course Level | {CourseLevel} | UnusualInvoice:{UnusualInvoice} | |
'
);
Ext.Ajax.request({
url: '/Url/Institution/InstitutionExtendList.aspx',
method: "POST",
params: {
institutionid: document.getElementById("ID").value
},
success: function(response, options) {
var responseArray = Ext.util.JSON.decode(response.responseText);
tpl.overwrite('attlist', responseArray);
},
failure: function() {
Ext.Msg.alert("Alarm", "Commission Information读取失败。");
}
});
主要是;我想写个能删除的方法.但不成功.应该怎么改呢.
[code="java"]
var tpl = new Ext.XTemplate(
'
',
'',
'
Commission Information:',
'',
'',
'',
' ',
' ',
' ',
' ',
' ',
' ',
'',
'',
'
Commission Unit | {CommissionUnit} | Course Level | {CourseLevel} | UnusualInvoice:{UnusualInvoice} | |
'
,{
delatt : function(){
//your code
},
otherFunc : function(){
//your code
}
}
);
.....
[/code]
你要传参数的话
[code="java"]
...
delatt : function(id){
alert(id);
//your code
},
[/code]