显示文本摘要,截取文本指定长度:
应用:
代码:
filters: { truncate: function (text, length, suffix) { if (text != undefined && text != null && text.length > length) { return text.substring(0, length) + suffix; } else { return text; } }, }Source Code
2023-11-11 22:15:52
显示文本摘要,截取文本指定长度:
应用:
代码:
filters: { truncate: function (text, length, suffix) { if (text != undefined && text != null && text.length > length) { return text.substring(0, length) + suffix; } else { return text; } }, }Source Code