首页 > 代码库 > 从后台获取加密json数据后解密
从后台获取加密json数据后解密
举例:
xtype:‘list‘,
store:‘eventsListStore‘,
itemTpl: new Ext.XTemplate(‘<tpl for=".">‘,
‘<div class="items clearfix">‘,
‘<div class="event-img"><div style="background:url({Pic}) no-repeat scroll 0px 30%;height:160px; background-size: cover;max-width: 100%;"></div></div>‘,
‘<div class="items-info">‘,
‘<h4>{[this.decode(values.Title)]}</h4>‘,
//‘<p class="items-time">{EventTime.Start} - {EventTime.End}</p>‘,
‘<p class="items-time">报名时间:{EventRegOpen.Open} - {EventRegOpen.Close} </p>‘,
//‘<p class="event-place"><span class="x-button-icon x-shown locate"></span><tpl for="EventAddress"> {[this.decode(values.Address)]} <br></tpl></p>‘,
‘<p class="items-brief">{[this.decode(values.EventIntro)]} </p>‘,
‘<div class="actionbox clearfix">‘,
‘<span class="iconbox"> <i class="icon-time"></i>{[Ext.util.Format.date(values.EventTime.Start, "Y/m/d")]}</span>‘,
‘<div class="pull-right">‘,
‘<span class="iconbox"> <i class="icon-heart"></i>333</span> <span class="iconbox"></span>‘,
‘</div></div></div></div>‘,
‘</tpl>‘,
{
decode: function(name){
return Ext.Object.getKeys(Ext.Object.fromQueryString(name))[0];
}
})
从后台获取加密json数据后解密