我用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我写成这样也不执行,是不是位置不对???
ptype: 'rowexpander',
rowBodyTpl : [
'<p><b>物理位置: </b> BSID:{bsid} 省份:renderer:alert({provinceid});if({provinceid}==31) return "湖北";</p>',
]
}],
width: 400,
height: 200,
collapsible: true,
animCollapse: false我写成这样也不执行,是不是位置不对???
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货