请问怎么获取字典里的标签,文档给的b) ${ fns:getDictLabel (value, type, defaultValue)}是否是页面获取字典标签的方法,需要填入的值是什么
上一篇:
pig 登录的时候出BUG
请问怎么获取字典里的标签,文档给的b) ${ fns:getDictLabel (value, type, defaultValue)}是否是页面获取字典标签的方法,需要填入的值是什么
你写的这个方法是1.2中jsp里的标签,在4.0中,beetl语法使用 ${@DictUtils.getDictLabel('sys_menu_type', 'pc', '')}
获取标签。
如果在js中就要结合着使用,例如:
js.getDictLabel(${@DictUtils.getDictListJson('sys_menu_type')}, val, '未知', true)