What text is highlighted in the Mini Program string?

as shown in the figure above, a string is sent back in the background. How to highlight the number?


insert a span, for example: xxxx sent you < span class= "number" > 2 messages


1. Regular matching comes out
2. Let the background change it. Pass XXX and 2 separately


.number{
    color: -sharpff0000;
}

to traverse this string, use typeof, to truncate the numeric type, then store the variables, and then give the style

separately.
Menu