As shown below:
$('a[rev="title"]').each(function () { var u = $.trim($(this).html()); $(this).html(SetSub(u, 10)) }); SetSub相当于substr
The above method of Jquery loop intercepting strings (the extra strings are processed into "...") is all the content shared by the editor. I hope it can give you a reference