title: "增幅",
width: 70,
dataType: "float",
align: "right",
dataIndx: "XSZZL",
format: function (val) {
if (val <= 0) {
return redblack + val +'%'+ endblack;
} else {
return black + '+' + val + '%'+endblack;
}
}
After the data has been formatted, the export is like this
<a style=""> +35.29%</a>