Sencha touch 如何在sencha touch中隐藏列表项get from store中的空值

Sencha touch 如何在sencha touch中隐藏列表项get from store中的空值,sencha-touch,extjs,sencha-touch-2,sencha-charts,Sencha Touch,Extjs,Sencha Touch 2,Sencha Charts,我已经在sencha touch中实现了一个应用程序。 因为我有一个列表视图,我从存储中检索数据 在数据库的某些字段中,我插入了空值,{No selection}。 列表视图中的相应字段显示为NULL, 但是我想显示一个空白,而不是空, { xtype: 'list', itemTpl: [ '<div id="wrapper">'+

我已经在sencha touch中实现了一个应用程序。

因为我有一个列表视图,我从存储中检索数据

在数据库的某些字段中,我插入了空值,{No selection}。

列表视图中的相应字段显示为NULL,

但是我想显示一个
空白
,而不是空,

        {
                  xtype: 'list',

                  itemTpl: [
                            '<div id="wrapper">'+
                            '<div class="frt">{Name}</div>'+
                            '<div class="frt">{Title}</div>'+
                            '<div class="frt">{Contact}</div>'+
                            '<div class="frt">{Zip}</div>'+
                            '</div>'
                            ],
                  store: 'ContactsDataBase'
             }
{
xtype:'列表',
第三方物流:[
''+
“{Name}”+
“{Title}”+
“{Contact}”+
“{Zip}”+
''
],
存储:“ContactsDataBase”
}
{
xtype:'列表',
第三方物流:[
''+
“{Name}”+
“{Title}”+
“{Contact}”+
“{Zip}”+
''
],
存储:“ContactsDataBase”
}
有关更多信息,请访问

干杯,奥列格

{
xtype:'列表',
第三方物流:[
''+
“{Name}”+
“{Title}”+
“{Contact}”+
“{Zip}”+
''
],
存储:“ContactsDataBase”
}
有关更多信息,请访问


干杯,奥列格

稍加修改的版本

itemTpl: [
               '<div id="wrapper">'+
               '<div class="frt"><tpl if="values.Name">{Name}</tpl></div>'+
               '<div class="frt"><tpl if="values.Title">{Title}</tpl></div>'+
               '<div class="frt">{Contact}</div>'+
               '<div class="frt">{Zip}</div>'+
               '</div>'
            ]
itemTpl:[
''+
“{Name}”+
“{Title}”+
“{Contact}”+
“{Zip}”+
''
]

稍加修改的版本

itemTpl: [
               '<div id="wrapper">'+
               '<div class="frt"><tpl if="values.Name">{Name}</tpl></div>'+
               '<div class="frt"><tpl if="values.Title">{Title}</tpl></div>'+
               '<div class="frt">{Contact}</div>'+
               '<div class="frt">{Zip}</div>'+
               '</div>'
            ]
itemTpl:[
''+
“{Name}”+
“{Title}”+
“{Contact}”+
“{Zip}”+
''
]

对此有问题:我有以下代码:temTpl:'{name}{active}{inactive}{rating}·;{amount}',对此有问题:我有以下代码:temTpl:{name}{active}{inactive}{rating}·;{amount}',