text : '附件',
flex : 1,
sortable : true,
dataIndex: 'ACCESSORY',
renderer: function (value, p, record) {
var c = record.get('ACCESSORY');
return "<a href='javascript:void(0)' onclick='showContactForm()'>"+value+"</a>";
}
为什么onclick事件不去调用extjs的showContactForm()方法
你的showContactForm方法在哪里定义的Ext.onReady里面?这样只能在Ext.onReady函数中访问
你这样添加的onclick时间showContactForm方法必须是window作用于域下的
楼主,解决了吗?怎么调用方法