0
我需要檢查存儲數據中的值(如果存在),然後纔想應用tpl。有條件的Ext.Template檢查存儲數據中的值
'<tpl if="{[values._record.data.TypeofTask]}==1>',
'<tr>',
'<th>Constraint Date:</th><td>{[values._record.data.TypeofTask]}</td>',
'</tr>',
'</tpl>',
然而它總是顯示tpl而不是應用if條件。
我該怎麼做?