ext dateView XTemplate求解答

king6065 king6065 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
自己写了一个需要重用的XTemplate 如下
				'<div style="font-size:12px;">',
'<div class="browse_realtime">',
'<div class="x-hb-tl">',
'<div class="x-hb-tr">',
'<div class="x-hb-tc">',
'<div class="x-more">',
'<center><a href="{moreAction}">更多</a></center>',
'</div>',
'<h2 class="x-window-header-text" id="{tabId1}" onmouseover="tab(id);">{name}</h2>',
'<h2 class="x-window-header-text2" id="{tabId2}" onmouseover="tab();">{tab2}</h2>',
'<h2 class="x-window-header-text3" id="{tabId3}" onmouseover="tab();">{tab3}</h2>',
'</div>',
'</div>',
'</div>',
'<div class="x-hb-ml">',
'<div class="x-hb-mr">',
'<div class="x-hb-mc">',
'<table>',
'<tpl for=".">',
'<tr>',
'<td><li>{#}【{typeValue}】<a href="../classifyn/ViewEditDialog.jsp?gaId={gaId}">{title}</a></li></td>',
'<td><span>{clickCount}</span></td>', '</tr>', '</tpl></table>',
' </div>', '</div>', ' </div>', ' <div class="x-hb-bl">',
'<div class="x-hb-br">', ' <div class="x-hb-bc"></div>',
'</div>', ' </div>', '</div>', '</div>');

for循环里面的是list 能正常显示.目前想从页面添加{moreAction} {tab1}等变量.(这些值根据new的不同的panel写死在前台页面)
请问怎么操作 网上没找到相关的说法
也考虑过从后台传moreAction过来 但是jsonStore 不会写.
传过来的json格式如下
{moreAction:"www.baidu.com",gaDataList:[{area:"001001",attentionCount:0,care:"004002"},{...},{...}]}
在线等 求大神
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
king6065
JavaScript 87,983 成员 224,681 内容