extjs中XTemplate表達式的用法

1 嵌入函數


new Ext.XTemplate('<tpl if="isSameUnit(a,b,c)==true">'.</tpl>..,{
isSameUnit : function(unit1, unit2, unit3) {
return ((unit1 == unit2) && (unit1 == unit3));
}
}
)

2
'<tpl if="xindex==1 && imagePath!=null">' +
'<img width="100" height="80" src="viewPhoto.do?path={imagePath}"/>' +
'</tpl>'+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章