Ext rowexpander问题

sunshineicy 2013-10-21 10:40:40
我用grid.pluging rowexpander.js插件,数据都能出来,但是有一个provinced数据后台得到是一个数字,我要变成相应的省份,可是rowBodyTpl配置里我写函数不起作用,怎么写,请教大神们

plugins: [{
ptype: 'rowexpander',
rowBodyTpl : [
'<p><b>物理位置:       </b> BSID:{bsid}                省份:renderer:alert({provinceid});if({provinceid}==31) return "湖北";</p>',

]
}],
width: 400,
height: 200,
collapsible: true,
animCollapse: false

我写成这样也不执行,是不是位置不对???
...全文
116 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
'<p><b>物理位置:       </b> BSID:{bsid}                省份:<tpl if="provinceid == 31">湖北</tpl>;</p>'

试试tpl

87,997

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧