1.换行显示 代码如下
// 换行显示
formatter: function (value) {
var ret = "";
var maxLength = 4;
var valLength = value.length;
var rowN = Math.ceil(valLength / maxLength);
if (rowN > 1) {
for (var i = 0; i < rowN; i++) {
temp = "";
var start = i * maxLength;
var end = start + maxLength;
var temp = value.substring(start, end) + "\n";
ret += temp;
}
return ret;
} else {
return value;
}
},
events: {
click: function (e) {