When wx:for strings, what should I do if I want to change the style of some substrings?

<view class="wrap">
      <text wx:for="{{aString}}">{{item}}</text>
</view>


data: {
    aString: "123456789"
}

what can I do if I want 123 to appear red after a condition is true

Mar.22,2021

Don't use text use rich-text so that every time you traverse the data, add a < span class='red' > xxx to the eligible part, and you achieve

.
Menu