field: ‘rightType‘, title: ‘权益类型‘, //width: 100, align: ‘left‘, valign: ‘top‘, sortable: true, formatter:rightTypeFormat
其实是采用了转换函数实现前台页面显示中文
//显示格式化,将value的值转换为中文 function rightTypeFormat(value, row, index) { if (value == "") { value = "请选择"; } if (value == "authority") { value = "访问权限"; } if (value == "discount") { value = "折扣"; } if (value == "scoreDouble") { value = "积分翻倍"; } return value; }
原文地址:https://www.cnblogs.com/Andrew520/p/9495184.html
时间: 2024-11-07 10:18:44