0
我有一個Xtemplate這樣定義:如何在extjs XTemplate中添加超鏈接?
this.Tpl = new Ext.XTemplate(
'<b>ID:</b><br />',
'{Id}'
);
現在我要補充一個href這樣的:
this.Tpl = new Ext.XTemplate(
'<b>ID:</b><br />',
'{Id}',
'<a href="#" onclick="javascript:window.showModalDialog('<%=request.getContextPath()%>/someAction?',this,'dialogWidth:1000px; dialogHeight:800px');"> Display Field</a>');
,但我得到的小腳本語法錯誤。我也認爲這些報價造成了一個問題。如何去做這件事?